Skip to content

Commit 38c8d98

Browse files
committed
sync_wait: add tests for its environment
1 parent d4fdf1d commit 38c8d98

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/beman/execution26/exec-sync-wait.test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ auto test_sync_wait() -> void {
223223
// NOLINTEND(cert-dcl03-c,hicpp-static-assert,misc-static-assert)
224224
}
225225
}
226+
227+
auto test_provides_scheduler() -> void {
228+
ASSERT(test_std::sync_wait(test_std::then(test_std::read_env(test_std::get_scheduler()), [](auto&&) noexcept {})));
229+
}
230+
231+
auto test_provides_delegation_scheduler() -> void {
232+
ASSERT(test_std::sync_wait(
233+
test_std::then(test_std::read_env(test_std::get_delegation_scheduler()), [](auto&&) noexcept {})));
234+
}
226235
} // namespace
227236

228237
TEST(exec_sync_wait) {

0 commit comments

Comments
 (0)