Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Lettner <julian.lettner@apple.com>2022-05-13 04:03:05 +0300
committerJulian Lettner <julian.lettner@apple.com>2022-05-13 04:13:12 +0300
commit824d83068efc4dda17b4b33368c1fbd019299171 (patch)
treece63b64603f70bb5e4576a38146cc2f33887d873 /compiler-rt
parent8a0fb965f6992078bb3d8bd68d3995e1150fe442 (diff)
[TSan] Relax pthread introspection-based test
Thread create/destroy events are not guaranteed to belivered on the parent thread, e.g., output from a CI job: ``` 5: THREAD_CREATE 0x7e8000104000, self: 0x1102ebdc0, name: n/a 6: THREAD_START 0x7e8000104000, self: 0x7e8000104000, name: n/a 7: Hello from pthread 8: THREAD_TERMINATE 0x7e8000104000, self: 0x7e8000104000, name: child thread 9: THREAD_DESTROY 0x7e8000104000, self: 0x7e8000104000, name: child thread ``` Here, THREAD_DESTROY is delivered on the thread being destroyed. rdar://92679941
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c b/compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c
index 04fa78a7665f..a52f4dea07bb 100644
--- a/compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c
+++ b/compiler-rt/test/tsan/Darwin/dyld-insert-libraries.c
@@ -105,9 +105,9 @@ int main() {
// CHECK: main
// Ignore TSan background thread.
// CHECK: THREAD_CREATE
-// CHECK: THREAD_CREATE [[CHILD:0x[0-9a-f]+]], self: [[MAIN:0x[0-9a-f]+]], name: n/a
+// CHECK: THREAD_CREATE [[CHILD:0x[0-9a-f]+]]
// CHECK: THREAD_START [[CHILD]], self: [[CHILD]], name: n/a
// CHECK: Hello from pthread
// CHECK: THREAD_TERMINATE [[CHILD]], self: [[CHILD]], name: child thread
-// CHECK: THREAD_DESTROY [[CHILD]], self: [[MAIN]]
+// CHECK: THREAD_DESTROY [[CHILD]]
// CHECK: Done.