Skip to content

Commit

Permalink
Add exception check due to internal message change
Browse files Browse the repository at this point in the history
The new MKL release changed the message of unimplemented exception.
Since tests were skipped by checking that message, some tests started to
fail. Update skipping check to keep compatibility with both versions.
  • Loading branch information
s-Nick committed Oct 8, 2024
1 parent c0c06ce commit 0c06b04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit_tests/dft/source/compute_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class ComputeTests_real_real_out_of_place_REAL
} \
catch (std::exception & e) { \
std::string msg = e.what(); \
if (msg.find("FFT_UNIMPLEMENTED") != std::string::npos) { \
if ((msg.find("FFT_UNIMPLEMENTED") != std::string::npos) || \
msg.find("unimplemented") != std::string::npos) { \
std::cout << "Skipping test because: \"" << msg << "\"" << std::endl; \
GTEST_SKIP(); \
} \
Expand Down

0 comments on commit 0c06b04

Please sign in to comment.