[PATCH] D143000: [MemProf] Make test more resilient to cpu scheduling

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 11:02:51 PST 2023


tejohnson created this revision.
tejohnson added a reviewer: snehasish.
Herald added a subscriber: Enna1.
Herald added a project: All.
tejohnson requested review of this revision.
Herald added a project: Sanitizers.
Herald added a subscriber: Sanitizers.

Loosen up the matching so that occasional cpu migrations don't break the
test. This showed up occasionally in internal testing.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143000

Files:
  compiler-rt/test/memprof/TestCases/test_merge_mib.cpp


Index: compiler-rt/test/memprof/TestCases/test_merge_mib.cpp
===================================================================
--- compiler-rt/test/memprof/TestCases/test_merge_mib.cpp
+++ 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]]


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143000.493679.patch
Type: text/x-patch
Size: 824 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230131/5b2b9c91/attachment.bin>


More information about the llvm-commits mailing list