From 0c06b044cbe22804a5618111957cb05e270c9892 Mon Sep 17 00:00:00 2001 From: nscipione Date: Mon, 7 Oct 2024 16:06:09 +0100 Subject: [PATCH] Add exception check due to internal message change 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. --- tests/unit_tests/dft/source/compute_tests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/unit_tests/dft/source/compute_tests.cpp b/tests/unit_tests/dft/source/compute_tests.cpp index 005f833ef..2d534f11a 100644 --- a/tests/unit_tests/dft/source/compute_tests.cpp +++ b/tests/unit_tests/dft/source/compute_tests.cpp @@ -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(); \ } \