Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/exec/test_static_thread_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace ex = STDEXEC;

namespace
{
#if !STDEXEC_NO_STDCPP_EXCEPTIONS()
struct throwing_set_next_receiver
{
using receiver_concept = ex::receiver_tag;
Expand Down Expand Up @@ -46,6 +47,7 @@ namespace
return {};
}
};
#endif
} // namespace

TEST_CASE("static_thread_pool::get_scheduler_on_thread Test start on a specific thread",
Expand Down Expand Up @@ -86,6 +88,7 @@ TEST_CASE("bulk on static_thread_pool executes on multiple threads", "[types][st
REQUIRE(thread_ids.size() == num_of_threads);
}

#if !STDEXEC_NO_STDCPP_EXCEPTIONS()
TEST_CASE("schedule_all on static_thread_pool sends errors from set_next",
"[types][static_thread_pool]")
{
Expand All @@ -105,6 +108,7 @@ TEST_CASE("schedule_all on static_thread_pool sends errors from set_next",
REQUIRE(error);
CHECK_THROWS_AS(std::rethrow_exception(error), std::runtime_error);
}
#endif

TEST_CASE("bulk on static_thread_pool executes on multiple threads, take 2",
"[types][static_thread_pool]")
Expand Down
Loading