From c2da58e5485b9fdf0d2d9c0bb72e9e4988ed3020 Mon Sep 17 00:00:00 2001 From: Klemens Morgenstern Date: Tue, 2 Jul 2024 20:40:29 +0800 Subject: [PATCH] added exit_code timeout. --- test/v1/exit_code.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/v1/exit_code.cpp b/test/v1/exit_code.cpp index 167275aef..69365ad16 100644 --- a/test/v1/exit_code.cpp +++ b/test/v1/exit_code.cpp @@ -28,7 +28,7 @@ typedef boost::asio::posix::stream_descriptor pipe_end; namespace bp = boost::process; -BOOST_AUTO_TEST_CASE(sync_wait) +BOOST_AUTO_TEST_CASE(sync_wait, *boost::unit_test::timeout(10)) { using boost::unit_test::framework::master_test_suite; @@ -48,7 +48,7 @@ BOOST_AUTO_TEST_CASE(sync_wait) c.wait(); } -BOOST_AUTO_TEST_CASE(sync_wait_abort) +BOOST_AUTO_TEST_CASE(sync_wait_abort, *boost::unit_test::timeout(10)) { using boost::unit_test::framework::master_test_suite; @@ -103,7 +103,7 @@ struct wait_handler }; #endif -BOOST_AUTO_TEST_CASE(async_wait) +BOOST_AUTO_TEST_CASE(async_wait, *boost::unit_test::timeout(10)) { using boost::unit_test::framework::master_test_suite; using namespace boost::asio; @@ -138,7 +138,7 @@ BOOST_AUTO_TEST_CASE(async_wait) -BOOST_AUTO_TEST_CASE(async_nowait) +BOOST_AUTO_TEST_CASE(async_nowait, *boost::unit_test::timeout(10)) { // No need to call wait when passing an io_context using boost::unit_test::framework::master_test_suite;