d_threads[d_tid].dt.start();
#endif
notifyStackSwitch(d_threads[d_tid].startOfStack, d_stacksize);
- pdns_swapcontext(d_kernel, *d_threads[d_tid].context);
+ try {
+ pdns_swapcontext(d_kernel, *d_threads[d_tid].context);
+ }
+ catch (...) {
+ notifyStackSwitchDone();
+ // It is not clear if the d_runQueue.pop() should be done in this case
+ throw;
+ }
notifyStackSwitchDone();
d_runQueue.pop();
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!");
std::exception);
}
-#endif // defined(HAVE_FIBER_SANITIZER) && defined(__APPLE__) && defined(__arm64__)
-
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(test_zonetocachegeneric)
{
+ g_log.setLoglevel(Logger::Critical);
+ g_log.toConsole(Logger::Critical);
zonemdGenericTest(genericTest, pdns::ZoneMD::Config::Require, pdns::ZoneMD::Config::Ignore, 4U);
zonemdGenericTest(genericBadTest, pdns::ZoneMD::Config::Require, pdns::ZoneMD::Config::Ignore, 0U);
}