Skip to content

Commit af31e09

Browse files
committed
[static] Mark some tests unsupported.
In the prior commit we opened static binaries for all ELF platforms when requested. For some reason, the ImageInspectionELF module is split out into its own library when building stdlib as a static library. However, there are still references to lookupSymbol from swiftCore to ImageInspectionELF, which cause lazy binding errors at runtime which foul up these unit tests. Currently it is unknown whether it is necessary to keep splitting out ImageInspectionELF like this; on its face, this seems rather unnecessary. Until then, mark these tests unsupported when stdlib exists as a static library, since these tests use the dynamic version of stdlib, and won't have the correct references to ImageInspectionELF.
1 parent 4c5b57f commit af31e09

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

test/Frontend/crash-in-user-code.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// See SR-13165
2+
// UNSUPPORTED: static_stdlib
13

24
// RUN: echo %s > %t.filelist.txt
35
// RUN: not --crash %target-swift-frontend -interpret -filelist %t.filelist.txt 2>&1 | %FileCheck %s

test/Interpreter/enforce_exclusive_access.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// See SR-13165
2+
// UNSUPPORTED: static_stdlib
13
// RUN: %empty-directory(%t)
24
// RUN: %target-build-swift -swift-version 4 %s -o %t/a.out -enforce-exclusivity=checked -Onone
35
//

test/Runtime/backtrace.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// See SR-13165
2+
// UNSUPPORTED: static_stdlib
13
// RUN: %empty-directory(%t)
24
// RUN: %target-build-swift %s -o %t/a.out
35
// RUN: %{python} %S/../Inputs/not.py "%target-run %t/a.out" 2>&1 | %{python} %utils/backtrace-check

0 commit comments

Comments
 (0)