-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SR-7309: Add tests for -static-executable on Linux
- Add extra test using Dispatch with -static-executable.
- Loading branch information
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Dispatch | ||
|
||
let queue = DispatchQueue(label: "queuename", attributes: .concurrent) | ||
queue.sync { | ||
print("Dispatch") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
REQUIRES: platform=Linux | ||
RUN: rm -rf %t | ||
RUN: mkdir -p %t | ||
RUN: %{swiftc} -static-executable -lDispatchStubs -lbsd -o %t/dispatch_test %S/dispatch-static-executable.swift | ||
RUN: %t/dispatch_test | %{FileCheck} %s | ||
RUN: file %t/dispatch_test | %{FileCheck} %s --check-prefix=FILE | ||
CHECK: Dispatch | ||
FILE: , statically linked, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print("OK") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
REQUIRES: platform=Linux | ||
RUN: rm -rf %t | ||
RUN: mkdir -p %t | ||
RUN: %{swiftc} -static-executable -o %t/static_executable %S/static-executable.swift | ||
RUN: %t/static_executable | %{FileCheck} %s | ||
RUN: file %t/static_executable | %{FileCheck} %s --check-prefix=FILE | ||
CHECK: OK | ||
FILE: , statically linked, |