Skip to content

Commit d2e8381

Browse files
committed
Enable one more test
Also address one of the points raised by Saleem's.
1 parent bd9a0c2 commit d2e8381

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

test/SILGen/tsan_instrumentation.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// RUN: %target-swift-emit-silgen -sanitize=thread %s | %FileCheck %s
2-
// REQUIRES: tsan_runtime
32

4-
// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
5-
// don't support TSan.
6-
// UNSUPPORTED: remote_run
3+
// TSan is only supported on 64 bit.
4+
// REQUIRES: PTRSIZE=64
75

86
func takesInout(_ p: inout Int) { }
97
func takesInout(_ p: inout MyStruct) { }

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@ runtime_libs = {
12281228
'fuzzer': 'fuzzer_runtime'
12291229
}
12301230

1231-
if run_ptrsize != "32" and 'libdispatch' in config.available_features:
1231+
if run_ptrsize == '64' and 'libdispatch' in config.available_features:
12321232
runtime_libs['tsan'] = 'tsan_runtime'
12331233

12341234
check_runtime_libs(runtime_libs)

0 commit comments

Comments
 (0)