[compiler-rt] 2ecb748 - [TSan][Test-Only][Darwin] Fix typo in external.cpp test (#165534)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 29 03:36:51 PDT 2025
Author: Dan Blackwell
Date: 2025-10-29T10:36:47Z
New Revision: 2ecb7489b5069cc576b880474489d39771ba976b
URL: https://github.com/llvm/llvm-project/commit/2ecb7489b5069cc576b880474489d39771ba976b
DIFF: https://github.com/llvm/llvm-project/commit/2ecb7489b5069cc576b880474489d39771ba976b.diff
LOG: [TSan][Test-Only][Darwin] Fix typo in external.cpp test (#165534)
Occasionally this test fails in CI. There are two possible races that
can occur, one of which is rare. Both are supposed to be handled, but
because the test matches "read-only" and the runtime outputs "Read-only"
(note the capital letter), the FileCheck fails.
This patch fixes the miscapitalisation of the FileCheck string in the
test.
rdar://163398219
Added:
Modified:
compiler-rt/test/tsan/Darwin/external.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/tsan/Darwin/external.cpp b/compiler-rt/test/tsan/Darwin/external.cpp
index 3869c7abb7664..8372a1eb125f3 100644
--- a/compiler-rt/test/tsan/Darwin/external.cpp
+++ b/compiler-rt/test/tsan/Darwin/external.cpp
@@ -68,9 +68,9 @@ int main(int argc, char *argv[]) {
// TEST2-NOT: WARNING: ThreadSanitizer
// TEST3: WARNING: ThreadSanitizer: race on MyLibrary::MyObject
- // TEST3: {{Modifying|read-only}} access of MyLibrary::MyObject at
+ // TEST3: {{Modifying|Read-only}} access of MyLibrary::MyObject at
// TEST3: {{ObjectWrite|ObjectRead}}
- // TEST3: Previous {{modifying|read-only}} access of MyLibrary::MyObject at
+ // TEST3: Previous {{modifying|Read-only}} access of MyLibrary::MyObject at
// TEST3: {{ObjectWrite|ObjectRead}}
// TEST3: Location is MyLibrary::MyObject of size 16 at
// TEST3: {{ObjectCreate}}
More information about the llvm-commits
mailing list