Skip to content

Commit d4b6297

Browse files
Merge pull request #18683 from aschwaighofer/codesign_sanitizer_tests_4.2
[4.2] Codesign remaining tests
2 parents 3146921 + 81ea343 commit d4b6297

File tree

9 files changed

+9
-3
lines changed

9 files changed

+9
-3
lines changed

test/Sanitizers/asan.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address -o %t_asan-binary
2+
// RUN: %target-codesign %t_asan-binary
23
// RUN: not env %env-ASAN_OPTIONS=abort_on_error=0 %target-run %t_asan-binary 2>&1 | %FileCheck %s
34
// REQUIRES: executable_test
45
// REQUIRES: asan_runtime

test/Sanitizers/tsan-norace-block-release.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swiftc_driver %s -g -sanitize=thread -target %sanitizers-target-triple -o %t_tsan-binary
2+
// RUN: %target-codesign %t_tsan-binary
23
// RUN: env %env-TSAN_OPTIONS=abort_on_error=0:ignore_interceptors_accesses=1 %target-run %t_tsan-binary 2>&1 | %FileCheck %s
34
// REQUIRES: executable_test
45
// REQUIRES: objc_interop

test/Sanitizers/tsan-norace-deinit-run-time.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swiftc_driver %s -g -sanitize=thread -target %sanitizers-target-triple -o %t_tsan-binary
2+
// RUN: %target-codesign %t_tsan-binary
23
// RUN: env %env-TSAN_OPTIONS=abort_on_error=0:ignore_interceptors_accesses=1 %target-run %t_tsan-binary 2>&1 | %FileCheck %s
34
// REQUIRES: executable_test
45
// REQUIRES: objc_interop

test/Sanitizers/tsan.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=thread -o %t_tsan-binary
2+
// RUN: %target-codesign %t_tsan-binary
23
// RUN: not env %env-TSAN_OPTIONS="abort_on_error=0" %target-run %t_tsan-binary 2>&1 | %FileCheck %s
34
// REQUIRES: executable_test
45
// REQUIRES: tsan_runtime

test/stdlib/AVFoundation_Swift3.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -swift-version 3 %s -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out
45
// REQUIRES: objc_interop
56
// REQUIRES: executable_test

test/stdlib/KeyPathImplementation.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift %s -g -o %t/a.out
3+
// RUN: %target-codesign %t/a.out
34
// RUN: %target-run %t/a.out
45
// REQUIRES: executable_test
56

test/stdlib/LazyCollectionPlus.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -o %t/a.out3 -swift-version 3 && %target-run %t/a.out3
2+
// RUN: %target-build-swift %s -o %t/a.out3 -swift-version 3 && %target-codesign %t/a.out3 && %target-run %t/a.out3
33
// REQUIRES: executable_test
44

55
import StdlibUnittest

test/stdlib/Metal.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-build-swift %s -o %t/a.out4 -swift-version 4 && %target-run %t/a.out4
2+
// RUN: %target-build-swift %s -o %t/a.out4 -swift-version 4 && %target-codesign %t/a.out4 && %target-run %t/a.out4
33
// REQUIRES: objc_interop
44
// UNSUPPORTED: OS=watchos
55

validation-test/stdlib/Dictionary4.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t ; mkdir -p %t
2-
// RUN: %target-build-swift %s -o %t/a.out -swift-version 4 && %target-run %t/a.out
2+
// RUN: %target-build-swift %s -o %t/a.out -swift-version 4 && %target-codesign %t/a.out && %target-run %t/a.out
33

44
// REQUIRES: executable_test
55

0 commit comments

Comments
 (0)