Skip to content

Commit c2f89cd

Browse files
authored
Merge pull request #61411 from al45tair/eng/PR-100707643
[Threading][Tests] Don't test timeouts on threading=none.
2 parents 7d9328e + d092d4b commit c2f89cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/Threading/ConditionVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ TEST(ConditionVariableTest, CriticalSectionThreaded) {
5454
criticalSectionThreaded(cond);
5555
}
5656

57+
#if !SWIFT_THREADING_NONE
5758
// Check that timeouts work
5859
TEST(ConditionVariableTest, Timeout) {
5960
using namespace std::chrono_literals;
@@ -95,7 +96,6 @@ TEST(ConditionVariableTest, Timeout) {
9596
ASSERT_GE(duration.count(), 0.5);
9697
}
9798

98-
#if !SWIFT_THREADING_NONE
9999
// Check that signal() wakes exactly one waiter
100100
TEST(ConditionVariableTest, Signal) {
101101
ConditionVariable cond;

0 commit comments

Comments
 (0)