Skip to content

Commit 7dc6855

Browse files
committed
Merge pull request #2175 from apple/fix-san-tests
[sanitizers] Make sure TSan tests do not run on 32 bit platforms.
2 parents c968204 + 1eacf89 commit 7dc6855

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
// This test verifies that we add the function attributes used by sanitizers.
1+
// This test verifies that we add the function attributes used by ASan.
22

33
// RUN: %target-swift-frontend -emit-ir -sanitize=address %s | FileCheck %s -check-prefix=ASAN
4-
// RUN: %target-swift-frontend -emit-ir -target x86_64-apple-macosx10.9 -sanitize=thread %s | FileCheck %s -check-prefix=TSAN
54

65
// XFAIL: linux
76

87
func test() {
98
}
109

1110
// ASAN: Function Attrs: sanitize_address
12-
// TSAN: Function Attrs: sanitize_thread

test/IRGen/tsan-attributes.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This test verifies that we add the function attributes used by TSan.
2+
3+
// RUN: %target-swift-frontend -emit-ir -sanitize=thread %s | FileCheck %s -check-prefix=TSAN
4+
5+
// TSan is currently only supported on 64 bit mac and simulators.
6+
// (We do not test the simulators here.)
7+
// REQUIRES: CPU=x86_64, OS=macosx
8+
9+
func test() {
10+
}
11+
12+
// TSAN: Function Attrs: sanitize_thread

0 commit comments

Comments
 (0)