-
Notifications
You must be signed in to change notification settings - Fork 21
Fix when all environment #257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a38e8ce
7dc405b
dcc595d
4b3f2f2
ac3bc0c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,16 +5,20 @@ | |
| #include <test/execution.hpp> | ||
| #ifdef BEMAN_HAS_MODULES | ||
| import beman.execution; | ||
| import beman.execution.detail.join_env; | ||
| #else | ||
| #include <beman/execution/detail/read_env.hpp> | ||
| #include <beman/execution/detail/common.hpp> | ||
| #include <beman/execution/detail/get_domain.hpp> | ||
| #include <beman/execution/detail/join_env.hpp> | ||
| #include <beman/execution/detail/sender.hpp> | ||
| #include <beman/execution/detail/sender_in.hpp> | ||
| #include <beman/execution/detail/receiver.hpp> | ||
| #include <beman/execution/detail/connect.hpp> | ||
| #include <beman/execution/detail/start.hpp> | ||
| #include <beman/execution/detail/get_stop_token.hpp> | ||
| #include <beman/execution/detail/sync_wait.hpp> | ||
| #include <beman/execution/detail/when_all.hpp> | ||
| #endif | ||
|
|
||
| // ---------------------------------------------------------------------------- | ||
|
|
@@ -74,7 +78,25 @@ auto test_read_env_completions() -> void { | |
| auto r{test_std::read_env(test_std::get_stop_token)}; | ||
| test::check_type<test_std::completion_signatures<test_std::set_value_t(test_std::never_stop_token)>>( | ||
| test_std::get_completion_signatures<decltype(r), test_std::env<>>()); | ||
| test::check_type<test_std::completion_signatures<test_std::set_value_t(test_std::never_stop_token)>>( | ||
| test_std::get_completion_signatures<decltype(r), decltype(test_std::env{})>()); | ||
| test::check_type<test_std::completion_signatures<test_std::set_value_t(test_std::inplace_stop_token)>>( | ||
| test_std::get_completion_signatures<decltype(r), | ||
| decltype(test_std::env{ | ||
| test_std::prop{test_std::get_stop_token, | ||
| std::declval<test_std::inplace_stop_token>()}})>()); | ||
| test::check_type<test_std::completion_signatures<test_std::set_value_t(test_std::inplace_stop_token)>>( | ||
| test_std::get_completion_signatures< | ||
| decltype(r), | ||
| decltype(test_detail::join_env( | ||
| test_std::env{test_std::prop{test_std::get_stop_token, std::declval<test_std::inplace_stop_token>()}}, | ||
| test_std::env{ | ||
| test_std::prop{test_std::get_stop_token, std::declval<test_std::never_stop_token>()}}))>()); | ||
|
Comment on lines
+89
to
+94
|
||
| test::use(r); | ||
|
|
||
| test_std::sync_wait(test_std::read_env(test_std::get_stop_token)); | ||
| test_std::sync_wait(test_std::when_all(test_std::read_env(test_std::get_stop_token))); | ||
| test_std::sync_wait(test_std::when_all(test_std::read_env(test_std::get_scheduler))); | ||
| } | ||
| } // namespace | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the non-modules include path this test uses
test_std::propbut does not include<beman/execution/detail/prop.hpp>directly, relying on it being pulled in transitively (currently via<beman/execution/detail/when_all.hpp>). Other tests that usetest_std::propincludeprop.hppexplicitly (e.g.tests/beman/execution/exec-affine-on.test.cpp:19). Consider adding the direct include to avoid brittle header dependencies.