Skip to content

Commit 699b482

Browse files
committed
[test] Enable impossible to support test POSIXErrorCode.
The REQUIRES written one in each line were impossible to satisfy in any platform, so the test wasn't running at all. This was changed to a REQUIRE-ANY listing all the platforms (and adding Android). I also needed to add runAllTest() at the end to make the test pass.
1 parent 7311886 commit 699b482

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

validation-test/stdlib/POSIXErrorCode.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
33
//
4-
// REQUIRES: OS=macosx
5-
// REQUIRES: OS=ios
6-
// REQUIRES: OS=tvos
7-
// REQUIRES: OS=watchos
8-
// REQUIRES: OS=linux-androideabi
9-
// REQUIRES: OS=linux-gnu
4+
// REQUIRES-ANY: OS=macosx, OS=ios, OS=tvos, OS=watchos, OS=linux-androideabi, OS=linux-android, OS=linux-gnu
105

116
import Swift
127
import StdlibUnittest
@@ -163,3 +158,5 @@ POSIXErrorCodeTestSuite.test("Linux POSIX error codes constants") {
163158
}
164159

165160
#endif
161+
162+
runAllTests()

0 commit comments

Comments
 (0)