Skip to content

Commit 98829a2

Browse files
committed
Revert "Glibc validation test now performed also on FreeBSD"
This broke the test on OS X bots. This reverts commit c145ac2.
1 parent 3f026be commit 98829a2

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

validation-test/stdlib/Glibc.swift

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
// RUN: %target-run-stdlib-swift
22
// REQUIRES: executable_test
33

4+
// REQUIRES: OS=linux-gnu
5+
46
import Swift
57
import StdlibUnittest
68

7-
#if os(Linux) || os(FreeBSD)
9+
810
import Glibc
9-
#endif
1011

1112
var GlibcTestSuite = TestSuite("Glibc")
1213

13-
GlibcTestSuite.test("errno")
14-
.skip(.custom({
15-
!( linuxAny(reason: "").evaluate() || freeBSDAny(reason: "").evaluate() )
16-
}, reason: "Only Linux and FreeBSD are supported")).code {
17-
errno = 0
18-
expectEqual(0, errno)
19-
close(-1)
20-
expectEqual(EBADF, errno)
14+
GlibcTestSuite.test("errno") {
15+
errno = 0
16+
expectEqual(0, errno)
17+
close(-1)
18+
expectEqual(EBADF, errno)
2119
}
2220

23-
2421
var GlibcIoctlConstants = TestSuite("GlibcIoctlConstants")
2522

26-
GlibcIoctlConstants.test("tty ioctl constants availability")
27-
.skip(.custom({
28-
!( linuxAny(reason: "").evaluate() || freeBSDAny(reason: "").evaluate() )
29-
}, reason: "Only Linux and FreeBSD are supported")).code {
30-
let aConstant = TIOCGWINSZ
23+
GlibcIoctlConstants.test("tty ioctl constants availability") {
24+
let aConstant = TIOCGWINSZ
3125
}
3226

33-
3427
runAllTests()

0 commit comments

Comments
 (0)