Skip to content

Commit 2eb028b

Browse files
committed
[test] Mark tests unsupported on all Linux flavors
Autolinking was added to the frontend in 22912bc. It was disabled on Linux in 198402d, and further constrained to be disabled on "linux-gnu" in 83b4384. Since then, more flavors of Linux have become supported by Swift: "linux-gnueabihf" in 4bf81e0, and "freebsd" in f41b791. Autolinking most likely does not work on any of these platforms, so mark it as unsupported for now. Other tests that only mark "linux-gnu" as unsupported do so for similar reasons. Ensure unsupported tests for "linux-gnu" are also unsupported on similar platforms.
1 parent f6adbb6 commit 2eb028b

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

test/ClangModules/autolinking.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
// RUN: %target-swift-frontend %s -sdk %S/Inputs -I %S/Inputs/custom-modules -emit-ir -disable-autolink-framework LinkFramework -o %t/with-disabled.ll
1212
// RUN: FileCheck --check-prefix=CHECK-WITH-DISABLED %s < %t/with-disabled.ll
1313

14+
// Linux uses a different autolinking mechanism, based on
15+
// swift-autolink-extract. This file tests the Darwin mechanism.
1416
// UNSUPPORTED: OS=linux-gnu
17+
// UNSUPPORTED: OS=linux-gnueabihf
18+
// UNSUPPORTED: OS=freebsd
1519

1620
import LinkMusket
1721
import LinkFramework

test/Frontend/embed-bitcode.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
// RUN: llvm-objdump -macho -section="__LLVM,__bitcode" %t.o | FileCheck -check-prefix=MARKER %s
55
// RUN: llvm-objdump -macho -section="__LLVM,__swift_cmdline" %t.o | FileCheck -check-prefix=MARKER-CMD %s
66

7+
// This file tests Mach-O file output, but Linux variants do not produce Mach-O
8+
// files.
79
// UNSUPPORTED: OS=linux-gnu
10+
// UNSUPPORTED: OS=linux-gnueabihf
11+
// UNSUPPORTED: OS=freebsd
812

913
// MARKER: Contents of (__LLVM,__bitcode) section
1014
// MARKER-NEXT: 00

test/Interpreter/repl_autolinking.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
// REQUIRES: swift_repl
1010
// UNSUPPORTED: OS=linux-gnu
11+
// UNSUPPORTED: OS=linux-gnueabihf
12+
// UNSUPPORTED: OS=freebsd
1113

1214
// This test checks that autolinking works in the REPL.
1315

test/Serialization/autolinking.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@
2020
// RUN: %target-swift-frontend -emit-ir -parse-stdlib -module-name someModule -module-link-name module %S/../Inputs/empty.swift -autolink-force-load | FileCheck --check-prefix=FORCE-LOAD %s
2121
// RUN: %target-swift-frontend -emit-ir -parse-stdlib -module-name someModule -module-link-name 0module %S/../Inputs/empty.swift -autolink-force-load | FileCheck --check-prefix=FORCE-LOAD-HEX %s
2222

23+
// Linux uses a different autolinking mechanism, based on
24+
// swift-autolink-extract. This file tests the Darwin mechanism.
2325
// UNSUPPORTED: OS=linux-gnu
26+
// UNSUPPORTED: OS=linux-gnueabihf
27+
// UNSUPPORTED: OS=freebsd
2428

2529
import someModule
2630

0 commit comments

Comments
 (0)