Skip to content

Commit c4c57c8

Browse files
committed
SR-7309: Add tests for -static-executable on Linux
- Add extra test using Dispatch with -static-executable.
1 parent 3ceb61d commit c4c57c8

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Dispatch
2+
3+
let queue = DispatchQueue(label: "queuename", attributes: .concurrent)
4+
queue.sync {
5+
print("Dispatch")
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
REQUIRES: platform=Linux
2+
RUN: rm -rf %t
3+
RUN: mkdir -p %t
4+
RUN: %{swiftc} -static-executable -lDispatchStubs -lbsd -o %t/dispatch_test %S/dispatch-static-executable.swift
5+
RUN: %t/dispatch_test | %{FileCheck} %s
6+
RUN: file %t/dispatch_test | %{FileCheck} %s --check-prefix=FILE
7+
CHECK: Dispatch
8+
FILE: , statically linked,
9+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("OK")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
REQUIRES: platform=Linux
2+
RUN: rm -rf %t
3+
RUN: mkdir -p %t
4+
RUN: %{swiftc} -static-executable -o %t/static_executable %S/static-executable.swift
5+
RUN: %t/static_executable | %{FileCheck} %s
6+
RUN: file %t/static_executable | %{FileCheck} %s --check-prefix=FILE
7+
CHECK: OK
8+
FILE: , statically linked,

0 commit comments

Comments
 (0)