Skip to content

Commit f2fe95e

Browse files
Relax test case requirements for static-stdlib-autolink-linux.swift
1 parent 709359c commit f2fe95e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/Driver/static-stdlib-autolink-linux.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Statically link a program with concurrency module
2-
// REQUIRES: OS=linux-gnu
32
// REQUIRES: static_stdlib
43
// REQUIRES: concurrency
54
// REQUIRES: libdispatch_static
@@ -13,7 +12,12 @@
1312

1413
// RUN: %t/main | %FileCheck %s
1514
// CHECK: Hello
16-
// RUN: ldd %t/main | %FileCheck %s --check-prefix=LDD
15+
16+
// RUN: if [ %target-os == "linux-gnu" ]; \
17+
// RUN: then \
18+
// RUN: ldd %t/main | %FileCheck %s --check-prefix=LDD; \
19+
// RUN: fi
20+
1721
// LDD-NOT: libswiftCore.so
1822
// LDD-NOT: libswift_Concurrency.so
1923

0 commit comments

Comments
 (0)