Skip to content

Commit

Permalink
use BOOST_CHECK_THROW, link in boost_context.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahupowerdns committed Oct 10, 2017
1 parent 7346028 commit 2eca39a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pdns/recursordist/Makefile.am
Expand Up @@ -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 \
Expand Down
4 changes: 2 additions & 2 deletions pdns/recursordist/test-mtasker.cc
Expand Up @@ -47,14 +47,14 @@ 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;

for(;;) {
mt.schedule(&now);
}
}, std::exception, [](const std::exception& e) { return true; });
}, std::exception);
}
BOOST_AUTO_TEST_SUITE_END()

0 comments on commit 2eca39a

Please sign in to comment.