[compiler-rt] 5773c70 - [MemProf] Make test more resilient to cpu scheduling
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 31 11:17:11 PST 2023
Author: Teresa Johnson
Date: 2023-01-31T11:17:01-08:00
New Revision: 5773c702310ad4349bea81d79f69217d1fce079f
URL: https://github.com/llvm/llvm-project/commit/5773c702310ad4349bea81d79f69217d1fce079f
DIFF: https://github.com/llvm/llvm-project/commit/5773c702310ad4349bea81d79f69217d1fce079f.diff
LOG: [MemProf] Make test more resilient to cpu scheduling
Loosen up the matching so that occasional cpu migrations don't break the
test. This showed up occasionally in internal testing.
Differential Revision: https://reviews.llvm.org/D143000
Added:
Modified:
compiler-rt/test/memprof/TestCases/test_merge_mib.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/memprof/TestCases/test_merge_mib.cpp b/compiler-rt/test/memprof/TestCases/test_merge_mib.cpp
index f9cdfc37fbd53..72928b09cb72c 100644
--- a/compiler-rt/test/memprof/TestCases/test_merge_mib.cpp
+++ b/compiler-rt/test/memprof/TestCases/test_merge_mib.cpp
@@ -12,7 +12,7 @@
// CHECK-NEXT: access_count (ave/min/max): 30.00 / 20 / 40
// Unfortunately there is not a reliable way to check the ave/min/max lifetime.
// CHECK-NEXT: lifetime (ave/min/max):
-// CHECK-NEXT: num migrated: {{[0-1]}}, num lifetime overlaps: 0, num same alloc cpu: 1, num same dealloc_cpu: 1
+// CHECK-NEXT: num migrated: {{[0-1]}}, num lifetime overlaps: 0, num same alloc cpu: {{[0-1]}}, num same dealloc_cpu: {{[0-1]}}
// CHECK: Stack for id [[STACKID]]:
// CHECK-NEXT: #0 {{.*}} in operator new
// CHECK-NEXT: #1 {{.*}} in main {{.*}}:[[@LINE+7]]
More information about the llvm-commits
mailing list