forked from OSchip/llvm-project
[test] Deflake test/profile/ContinuousSyncMode/online-merging.c
This test spawns 32 child processes which race to update counters on shared memory pages. On some Apple-internal machines, two processes race to perform an update in approximately 0.5% of the test runs, leading to dropped counter updates. Deflake the test by using atomic increments. Tested with: ``` $ for I in $(seq 1 1000); do echo ":: Test run $I..."; ./bin/llvm-lit projects/compiler-rt/test/profile/Profile-x86_64h/ContinuousSyncMode/online-merging.c -av || break; done ``` rdar://64956774
This commit is contained in:
parent
359345d609
commit
47481cbffb
|
@ -8,9 +8,9 @@
|
|||
// Create two DSOs and a driver program that uses them.
|
||||
// RUN: echo "void dso1(void) {}" > dso1.c
|
||||
// RUN: echo "void dso2(void) {}" > dso2.c
|
||||
// RUN: %clang_pgogen -dynamiclib -o %t.dir/dso1.dylib dso1.c
|
||||
// RUN: %clang_pgogen -dynamiclib -o %t.dir/dso2.dylib dso2.c
|
||||
// RUN: %clang_pgogen -o main.exe %s %t.dir/dso1.dylib %t.dir/dso2.dylib
|
||||
// RUN: %clang_pgogen -dynamiclib -o %t.dir/dso1.dylib dso1.c -mllvm -instrprof-atomic-counter-update-all=1
|
||||
// RUN: %clang_pgogen -dynamiclib -o %t.dir/dso2.dylib dso2.c -mllvm -instrprof-atomic-counter-update-all=1
|
||||
// RUN: %clang_pgogen -o main.exe %s %t.dir/dso1.dylib %t.dir/dso2.dylib -mllvm -instrprof-atomic-counter-update-all=1
|
||||
//
|
||||
// === Round 1 ===
|
||||
// Test merging+continuous mode without any file contention.
|
||||
|
|
Loading…
Reference in New Issue