Skip to content

Commit

Permalink
disable task test if executor isn't any_io_executor.
Browse files Browse the repository at this point in the history
  • Loading branch information
klemens-morgenstern committed Mar 31, 2024
1 parent b95e42e commit 96b8b6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ CO_TEST_CASE(move_only)
co_await task_move_only_test();
}

#if !defined(BOOST_COBALT_USE_IO_CONTEXT) && !defined(BOOST_COBALT_CUSTOM_EXECUTOR)

BOOST_AUTO_TEST_CASE(cancel_task_)
{
asio::thread_pool ctx{1};
Expand All @@ -321,6 +323,7 @@ BOOST_AUTO_TEST_CASE(cancel_task_)
ctx.join();
}

#endif



Expand Down

0 comments on commit 96b8b6e

Please sign in to comment.