Skip to content

Commit 0ce8bfa

Browse files
ylnJulian Lettner
andauthored
[Sanitizers] Remove obsolete LIT substitution (#65420)
Co-authored-by: Julian Lettner <[email protected]>
1 parent 4ccacd7 commit 0ce8bfa

18 files changed

+22
-31
lines changed

test/Interpreter/indirect_enum.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address -o %t_asan-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=address -o %t_asan-binary
22
// RUN: %target-codesign %t_asan-binary
33
// RUN: env ASAN_OPTIONS=detect_leaks=0 %target-run %t_asan-binary
44

test/Sanitizers/asan/asan.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address -o %t_asan-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=address -o %t_asan-binary
22
// RUN: %target-codesign %t_asan-binary
33
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0 not %target-run %t_asan-binary 2>&1 | %FileCheck %s
44

55
// ODR Indicator variant
6-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address \
6+
// RUN: %target-swiftc_driver %s -g -sanitize=address \
77
// RUN: -sanitize-address-use-odr-indicator -o %t_asan-binary-odr-indicator
88
// RUN: %target-codesign %t_asan-binary-odr-indicator
99
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0 not %target-run \

test/Sanitizers/asan/recover.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// UNSUPPORTED: OS=windows-msvc
44

55
// Check with recovery instrumentation and the runtime option to continue execution.
6-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address -sanitize-recover=address -import-objc-header %S/asan_interface.h -emit-ir -o %t.asan_recover.ll
6+
// RUN: %target-swiftc_driver %s -g -sanitize=address -sanitize-recover=address -import-objc-header %S/asan_interface.h -emit-ir -o %t.asan_recover.ll
77
// RUN: %FileCheck -check-prefix=CHECK-IR -input-file=%t.asan_recover.ll %s
8-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address -sanitize-recover=address -import-objc-header %S/asan_interface.h -o %t_asan_recover
8+
// RUN: %target-swiftc_driver %s -g -sanitize=address -sanitize-recover=address -import-objc-header %S/asan_interface.h -o %t_asan_recover
99
// RUN: %target-codesign %t_asan_recover
1010
// RUN: env %env-ASAN_OPTIONS=halt_on_error=0 %target-run %t_asan_recover > %t_asan_recover.stdout 2> %t_asan_recover.stderr
1111
// RUN: %FileCheck --check-prefixes=CHECK-COMMON-STDERR,CHECK-RECOVER-STDERR -input-file=%t_asan_recover.stderr %s
@@ -17,7 +17,7 @@
1717
// RUN: %FileCheck --check-prefixes=CHECK-COMMON-STDOUT,CHECK-NO-RECOVER-STDOUT -input-file=%t_asan_no_runtime_recover.stdout %s
1818

1919
// Check that without recovery instrumentation and runtime option to continue execution that error recovery does not happen.
20-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=address -import-objc-header %S/asan_interface.h -o %t_asan_no_recover
20+
// RUN: %target-swiftc_driver %s -g -sanitize=address -import-objc-header %S/asan_interface.h -o %t_asan_no_recover
2121
// RUN: %target-codesign %t_asan_no_recover
2222
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0,halt_on_error=0 not %target-run %t_asan_no_recover > %t_asan_no_recover.stdout 2> %t_asan_no_recover.stderr
2323
// RUN: %FileCheck --check-prefixes=CHECK-COMMON-STDERR -input-file=%t_asan_no_recover.stderr %s

test/Sanitizers/sanitizer_coverage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-build-swift -sanitize=address -sanitize-coverage=edge -target %sanitizers-target-triple %s -o %t_binary
1+
// RUN: %target-build-swift -sanitize=address -sanitize-coverage=edge %s -o %t_binary
22
// RUN: %empty-directory(%t_coverage_dir)
33
// RUN: %env-ASAN_OPTIONS=abort_on_error=0,coverage=1,coverage_dir=%t_coverage_dir %target-run %t_binary
44
// check the coverage file exists

test/Sanitizers/scudo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=scudo -o %t_scudo-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=scudo -o %t_scudo-binary
22
// RUN: not %target-run %t_scudo-binary 2>&1 | %FileCheck %s
33
// REQUIRES: executable_test
44
// REQUIRES: OS=linux-gnu

test/Sanitizers/symbolication-linux.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-build-swift %s -sanitize=address -g -target %sanitizers-target-triple -o %t
1+
// RUN: %target-build-swift %s -sanitize=address -g -o %t
22
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0 not %target-run %t 2>&1 | %swift-demangle | %FileCheck %s -check-prefix=OOP
33
// In-process symbolication doesn't work on Linux (yet)
44
// XXX: env %env-ASAN_OPTIONS=abort_on_error=0,external_symbolizer_path= not %target-run %t 2>&1 | %swift-demangle | %FileCheck %s -check-prefix=IP

test/Sanitizers/symbolication.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-build-swift %s -sanitize=address -g -target %sanitizers-target-triple -o %t
1+
// RUN: %target-build-swift %s -sanitize=address -g -o %t
22
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0 not %target-run %t 2>&1 | %FileCheck %s -check-prefix=OOP
33
// RUN: env %env-ASAN_OPTIONS=abort_on_error=0,external_symbolizer_path= not %target-run %t 2>&1 | %FileCheck %s -check-prefix=IP
44
// REQUIRES: executable_test

test/Sanitizers/tsan/emptyarraystorage.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=thread -o %t_tsan-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=thread -o %t_tsan-binary
22
// RUN: %target-codesign %t_tsan-binary
33
// RUN: %target-run %t_tsan-binary 2>&1 | %FileCheck %s --implicit-check-not='ThreadSanitizer'
44
// REQUIRES: executable_test

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -g -sanitize=thread %import-libdispatch -target %sanitizers-target-triple -o %t_tsan-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=thread %import-libdispatch -o %t_tsan-binary
22
// RUN: %target-codesign %t_tsan-binary
33
// RUN: env %env-TSAN_OPTIONS=abort_on_error=0 %target-run %t_tsan-binary 2>&1 | %FileCheck %s --implicit-check-not='ThreadSanitizer'
44
// REQUIRES: executable_test

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -g -sanitize=thread %import-libdispatch -target %sanitizers-target-triple -o %t_tsan-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=thread %import-libdispatch -o %t_tsan-binary
22
// RUN: %target-codesign %t_tsan-binary
33
// RUN: env %env-TSAN_OPTIONS=abort_on_error=0 %target-run %t_tsan-binary 2>&1 | %FileCheck %s --dump-input=fail --implicit-check-not='ThreadSanitizer'
44
// REQUIRES: executable_test

test/Sanitizers/tsan/racy_actor_counters.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -parse-as-library %import-libdispatch -target %sanitizers-target-triple -g -sanitize=thread -o %t
1+
// RUN: %target-swiftc_driver %s -parse-as-library %import-libdispatch -g -sanitize=thread -o %t
22
// RUN: %target-codesign %t
33
// RUN: env %env-TSAN_OPTIONS="abort_on_error=0" not %target-run %t 2>&1 | %swift-demangle --simplified | %FileCheck %s
44

test/Sanitizers/tsan/racy_async_let_fibonacci.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -Xfrontend -disable-availability-checking -parse-as-library %import-libdispatch -target %sanitizers-target-triple -g -sanitize=thread -o %t
1+
// RUN: %target-swiftc_driver %s -Xfrontend -disable-availability-checking -parse-as-library %import-libdispatch -g -sanitize=thread -o %t
22
// RUN: %target-codesign %t
33
// RUN: env %env-TSAN_OPTIONS="abort_on_error=0" not %target-run %t 2>&1 | %swift-demangle --simplified | %FileCheck %s
44

test/Sanitizers/tsan/tsan.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swiftc_driver %s -target %sanitizers-target-triple -g -sanitize=thread %import-libdispatch -o %t_tsan-binary
1+
// RUN: %target-swiftc_driver %s -g -sanitize=thread %import-libdispatch -o %t_tsan-binary
22
// RUN: %target-codesign %t_tsan-binary
33
// RUN: env %env-TSAN_OPTIONS="abort_on_error=0" not %target-run %t_tsan-binary 2>&1 | %FileCheck %s
44
// REQUIRES: executable_test

test/lit.cfg

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -897,15 +897,6 @@ config.substitutions.append(('%target-next-stable-abi-triple',
897897
config.substitutions.append(('%target-future-triple',
898898
config.future_triple))
899899

900-
# Sanitizers are not supported on iOS7, yet all tests are configured to start
901-
# testing with the earliest supported platform, which happens to be iOS7 for
902-
# Swift.
903-
# Setting target manually makes tests less versatile (a separate test is
904-
# then required for each OS), thus instead we define a new environment
905-
# variable which enforces the usage of iOS8+ when iOS is used.
906-
config.substitutions.append(('%sanitizers-target-triple',
907-
config.variant_triple.replace("ios7", "ios8")))
908-
909900
config.substitutions.append(('%target-cpu', run_cpu))
910901

911902
target_os_abi = run_os

validation-test/Sanitizers/tsan-ignores-arc-locks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-build-swift -target %sanitizers-target-triple -sanitize=thread %s -o %t_binary
1+
// RUN: %target-build-swift -sanitize=thread %s -o %t_binary
22
// RUN: %env-TSAN_OPTIONS=halt_on_error=1 %target-run %t_binary
33
// REQUIRES: executable_test
44
// REQUIRES: stress_test

validation-test/Sanitizers/tsan-inout.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: %empty-directory(%t)
22
// RUN: cd %t
3-
// RUN: %target-build-swift %S/Inputs/tsan-uninstrumented.swift -target %sanitizers-target-triple -module-name TSanUninstrumented -emit-module -emit-module-path %t/TSanUninstrumented.swiftmodule -parse-as-library
4-
// RUN: %target-build-swift %S/Inputs/tsan-uninstrumented.swift -target %sanitizers-target-triple -c -module-name TSanUninstrumented -parse-as-library -o %t/TSanUninstrumented.o
5-
// RUN: %target-swiftc_driver %s %t/TSanUninstrumented.o -target %sanitizers-target-triple -I%t -L%t -g -sanitize=thread %import-libdispatch -o %t/tsan-binary
3+
// RUN: %target-build-swift %S/Inputs/tsan-uninstrumented.swift -module-name TSanUninstrumented -emit-module -emit-module-path %t/TSanUninstrumented.swiftmodule -parse-as-library
4+
// RUN: %target-build-swift %S/Inputs/tsan-uninstrumented.swift -c -module-name TSanUninstrumented -parse-as-library -o %t/TSanUninstrumented.o
5+
// RUN: %target-swiftc_driver %s %t/TSanUninstrumented.o -I%t -L%t -g -sanitize=thread %import-libdispatch -o %t/tsan-binary
66
// RUN: not env %env-TSAN_OPTIONS=abort_on_error=0 %target-run %t/tsan-binary 2>&1 | %FileCheck %s
77
// REQUIRES: executable_test
88
// REQUIRES: stress_test

validation-test/Sanitizers/tsan-type-metadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: rdar64809726
2-
// RUN: %target-swiftc_driver -target %sanitizers-target-triple -sanitize=thread %import-libdispatch %s -o %t_binary
2+
// RUN: %target-swiftc_driver -sanitize=thread %import-libdispatch %s -o %t_binary
33
// RUN: %env-TSAN_OPTIONS=halt_on_error=1 %target-run %t_binary
44
// REQUIRES: executable_test
55
// REQUIRES: stress_test

validation-test/Sanitizers/witness_table_lookup.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: rdar64809726
2-
// RUN: %target-build-swift -sanitize=thread %import-libdispatch -target %sanitizers-target-triple %s -o %t_binary
2+
// RUN: %target-build-swift -sanitize=thread %import-libdispatch %s -o %t_binary
33
// RUN: %env-TSAN_OPTIONS=halt_on_error=1 %target-run %t_binary
44
// REQUIRES: executable_test
55
// REQUIRES: stress_test

0 commit comments

Comments
 (0)