Skip to content

Commit

Permalink
Cut test file
Browse files Browse the repository at this point in the history
  • Loading branch information
ispeters committed Sep 1, 2024
1 parent b091339 commit f410888
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions test/spawn_future_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

namespace {

#if 0
TEST(spawn_future_test, spawn_future_of_just_and_v1_scope_compiles) {
unifex::v1::async_scope scope;

Expand Down Expand Up @@ -239,7 +240,7 @@ TEST(spawn_future_test, spawn_future_in_closed_v2_scope_is_safe) {

EXPECT_FALSE(ret.has_value());
}

#endif
#if !UNIFEX_NO_EXCEPTIONS
template <typename Scope>
struct pathological_scope final {
Expand All @@ -256,7 +257,7 @@ struct pathological_scope final {
return unifex::nest(static_cast<Sender&&>(sender), scope.scope);
}
};

#if 0
TEST(
spawn_future_test,
spawn_future_with_v1_scope_is_safe_when_first_nest_throws) {
Expand Down Expand Up @@ -300,7 +301,7 @@ TEST(

unifex::sync_wait(scope.scope.join());
}

#endif
TEST(spawn_future_test, spawn_future_in_open_pathological_v1_scope_is_safe) {
pathological_scope<unifex::v1::async_scope> scope;

Expand All @@ -317,7 +318,7 @@ TEST(spawn_future_test, spawn_future_in_open_pathological_v1_scope_is_safe) {

unifex::sync_wait(scope.scope.complete());
}

#if 0
TEST(spawn_future_test, spawn_future_in_open_pathological_v2_scope_is_safe) {
pathological_scope<unifex::v2::async_scope> scope;

Expand Down Expand Up @@ -479,7 +480,8 @@ TEST(spawn_future_test, spawn_future_of_just_error_is_supported) {
unifex::sync_wait(scope.join());
}
#endif

#endif
#if 0
TEST(spawn_future_test, spawn_future_of_just_done_is_supported) {
unifex::v2::async_scope scope;

Expand Down Expand Up @@ -747,5 +749,5 @@ TEST(spawn_future_test, racing_to_complete_and_drop_is_safe) {

t.join();
}

#endif
} // namespace

0 comments on commit f410888

Please sign in to comment.