From: bert hubert Date: Tue, 10 Oct 2017 14:06:51 +0000 (+0200) Subject: use BOOST_CHECK_THROW, link in boost_context.cc X-Git-Tag: rec-4.1.0-rc2~46^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5803%2Fhead;p=thirdparty%2Fpdns.git use BOOST_CHECK_THROW, link in boost_context.cc --- diff --git a/pdns/recursordist/Makefile.am b/pdns/recursordist/Makefile.am index 082c90c278..a3ab6121fd 100644 --- a/pdns/recursordist/Makefile.am +++ b/pdns/recursordist/Makefile.am @@ -206,7 +206,7 @@ testrunner_SOURCES = \ ixfr.cc ixfr.hh \ logger.cc logger.hh \ misc.cc misc.hh \ - mtasker_fcontext.cc \ + mtasker_context.cc \ negcache.hh negcache.cc \ namespaces.hh \ nsecrecords.cc \ diff --git a/pdns/recursordist/test-mtasker.cc b/pdns/recursordist/test-mtasker.cc index 9da5825586..f6f1b5b465 100644 --- a/pdns/recursordist/test-mtasker.cc +++ b/pdns/recursordist/test-mtasker.cc @@ -47,7 +47,7 @@ static void willThrow(void* p) BOOST_AUTO_TEST_CASE(test_MtaskerException) { - BOOST_CHECK_EXCEPTION( { + BOOST_CHECK_THROW( { MTasker<> mt; mt.makeThread(willThrow, 0); struct timeval now; @@ -55,6 +55,6 @@ BOOST_AUTO_TEST_CASE(test_MtaskerException) { for(;;) { mt.schedule(&now); } - }, std::exception, [](const std::exception& e) { return true; }); + }, std::exception); } BOOST_AUTO_TEST_SUITE_END()