File tree Expand file tree Collapse file tree 1 file changed +10
-17
lines changed Expand file tree Collapse file tree 1 file changed +10
-17
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-stdlib-swift
2
2
// REQUIRES: executable_test
3
3
4
+ // REQUIRES: OS=linux-gnu
5
+
4
6
import Swift
5
7
import StdlibUnittest
6
8
7
- #if os(Linux) || os(FreeBSD)
9
+
8
10
import Glibc
9
- #endif
10
11
11
12
var GlibcTestSuite = TestSuite ( " Glibc " )
12
13
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)
21
19
}
22
20
23
-
24
21
var GlibcIoctlConstants = TestSuite ( " GlibcIoctlConstants " )
25
22
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
31
25
}
32
26
33
-
34
27
runAllTests ( )
You can’t perform that action at this time.
0 commit comments