]> granicus.if.org Git - pdns/commitdiff
use BOOST_CHECK_THROW, link in boost_context.cc
authorbert hubert <bert.hubert@powerdns.com>
Tue, 10 Oct 2017 14:06:51 +0000 (16:06 +0200)
committerbert hubert <bert.hubert@powerdns.com>
Tue, 10 Oct 2017 14:06:51 +0000 (16:06 +0200)
pdns/recursordist/Makefile.am
pdns/recursordist/test-mtasker.cc

index 082c90c2785b2c44a98db65f1c1a07e07ed8ce96..a3ab6121fd390c836eafbbbe945ae49302e7f332 100644 (file)
@@ -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 \
index 9da5825586c1b5d5f8a2e7b195abea8df196a856..f6f1b5b46549c83d062ea72c71cb7dd7bf61a74c 100644 (file)
@@ -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()