Skip to content

Commit 56d9bbb

Browse files
author
Julian Lettner
committed
Manually demangle TSan report to make test pass on Linux
Use `%swift-demangle` to make FileCheck against symbol names pass on Linux.
1 parent 99bcd87 commit 56d9bbb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Sanitizers/tsan/racy_actor_counters.swift

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

55
// REQUIRES: executable_test
66
// REQUIRES: concurrency

test/Sanitizers/tsan/racy_async_let_fibonacci.swift

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

55
// REQUIRES: executable_test
66
// REQUIRES: concurrency

0 commit comments

Comments
 (0)