]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Disable test_MtaskerException on Apple Silicon if asan is enabled. Works around ...
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 2 Nov 2022 10:49:19 +0000 (11:49 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 2 Nov 2022 10:51:59 +0000 (11:51 +0100)
pdns/recursordist/test-mtasker.cc

index 6df5fc181cab5ac2e58b49ccffd1b267ad1a9f42..fb678897be4113b0c5891d2bc150ab5433ba11b7 100644 (file)
@@ -40,6 +40,19 @@ BOOST_AUTO_TEST_CASE(test_Simple)
   BOOST_CHECK_EQUAL(g_result, o);
 }
 
+#if defined(HAVE_FIBER_SANITIZER) && defined(__APPLE__) && defined(__arm64__)
+
+// This test is buggy on MacOS when compiled with asan. It also causes subsequents tests to report spurious issues.
+// So switch it off for now
+// See https://github.com/PowerDNS/pdns/issues/12151
+
+BOOST_AUTO_TEST_CASE(test_MtaskerException)
+{
+  cerr << "test_MtaskerException test disabled on this platform with asan enabled, please fix" << endl;
+}
+
+#else
+
 static void willThrow(void* p)
 {
   throw std::runtime_error("Help!");
@@ -59,4 +72,7 @@ BOOST_AUTO_TEST_CASE(test_MtaskerException)
   },
                     std::exception);
 }
+
+#endif // defined(HAVE_FIBER_SANITIZER) && defined(__APPLE__) && defined(__arm64__)
+
 BOOST_AUTO_TEST_SUITE_END()