diff options
author | Derek Bruening <bruening@google.com> | 2016-06-08 17:35:52 +0000 |
---|---|---|
committer | Derek Bruening <bruening@google.com> | 2016-06-08 17:35:52 +0000 |
commit | ef5e5ab4ba851cacd6b4cbf3b83a27373e62badb (patch) | |
tree | d94e2492f065b70995d049061c978d9a61c47072 /test/esan | |
parent | 493a6825af6d01725e017c3d69a3fae953b7c5f4 (diff) |
[esan|wset] Reduce flakiness in samples test
Generalizes the workingset-samples test to pass when a sample has a
size of 0, which can happen on a loaded machine.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@272175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/esan')
-rw-r--r-- | test/esan/TestCases/workingset-samples.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/esan/TestCases/workingset-samples.cpp b/test/esan/TestCases/workingset-samples.cpp index 6ca1a2ccc..8402bca90 100644 --- a/test/esan/TestCases/workingset-samples.cpp +++ b/test/esan/TestCases/workingset-samples.cpp @@ -22,12 +22,12 @@ int main(int argc, char **argv) { // We only check for a few samples here to reduce the chance of flakiness. // CHECK: =={{[0-9]+}}== Total number of samples: {{[0-9]+}} // CHECK-NEXT: =={{[0-9]+}}== Samples array #0 at period 20 ms - // CHECK-NEXT: =={{[0-9]+}}==# 0: {{[ 0-9]+}} KB ({{[ 0-9]+}} cache lines) - // CHECK-NEXT: =={{[0-9]+}}==# 1: {{[ 0-9]+}} KB ({{[ 0-9]+}} cache lines) - // CHECK-NEXT: =={{[0-9]+}}==# 2: {{[ 0-9]+}} KB ({{[ 0-9]+}} cache lines) - // CHECK-NEXT: =={{[0-9]+}}==# 3: {{[ 0-9]+}} KB ({{[ 0-9]+}} cache lines) + // CHECK-NEXT: =={{[0-9]+}}==# 0: {{[ 0-9]+}} {{KB|Bytes}} ({{[ 0-9]+}} cache lines) + // CHECK-NEXT: =={{[0-9]+}}==# 1: {{[ 0-9]+}} {{KB|Bytes}} ({{[ 0-9]+}} cache lines) + // CHECK-NEXT: =={{[0-9]+}}==# 2: {{[ 0-9]+}} {{KB|Bytes}} ({{[ 0-9]+}} cache lines) + // CHECK-NEXT: =={{[0-9]+}}==# 3: {{[ 0-9]+}} {{KB|Bytes}} ({{[ 0-9]+}} cache lines) // CHECK: =={{[0-9]+}}== Samples array #1 at period 80 ms - // CHECK-NEXT: =={{[0-9]+}}==# 0: {{[ 0-9]+}} KB ({{[ 0-9]+}} cache lines) + // CHECK-NEXT: =={{[0-9]+}}==# 0: {{[ 0-9]+}} {{KB|Bytes}} ({{[ 0-9]+}} cache lines) // CHECK: =={{[0-9]+}}== Samples array #2 at period 320 ms // CHECK: =={{[0-9]+}}== Samples array #3 at period 1280 ms // CHECK: =={{[0-9]+}}== Samples array #4 at period 5120 ms |