Skip to content

Commit d092d4b

Browse files
committed
[Threading][Tests] Don't test timeouts on threading=none.
The preprocessor condition stopping tests from running for threading=none was in slightly the wrong place. rdar://100707643
1 parent d0f42ca commit d092d4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

unittests/Threading/ConditionVariable.cpp

+1-1
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)