Skip to content

Commit 65d546e

Browse files
committed
[Interpreter] Enable SDK/libc test on non-Darwin platfrom
1 parent 9c55ad1 commit 65d546e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/Interpreter/SDK/libc.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
// RUN: %target-run-simple-swift %s %t | FileCheck %s
66
// REQUIRES: executable_test
77

8-
// XFAIL: linux
9-
10-
import Darwin
8+
#if os(OSX) || os(iOS) || os(watchOS) || os(tvOS)
9+
import Darwin
10+
#elseif os(Linux) || os(FreeBSD) || os(Android)
11+
import Glibc
12+
#endif
1113

1214
let sourcePath = Process.arguments[1]
1315
let tempPath = Process.arguments[2] + "/libc.txt"

0 commit comments

Comments
 (0)