Andrew Top | 61a8495 | 2019-04-30 15:07:33 -0700 | [diff] [blame] | 1 | # Tests -handle_unstable |
| 2 | UNSUPPORTED: aarch64 |
| 3 | |
| 4 | RUN: %cpp_compiler %S/PrintUnstableStatsTest.cpp -o %t-HandleUnstableTest |
| 5 | |
| 6 | ; Normal |
| 7 | RUN: %run %t-HandleUnstableTest -print_coverage=1 -runs=100000 2>&1 | FileCheck %s --check-prefix=NORMAL |
| 8 | NORMAL-DAG: det0() |
| 9 | NORMAL-DAG: det1() |
| 10 | NORMAL-DAG: det2() |
| 11 | NORMAL-DAG: det3() |
| 12 | NORMAL-DAG: det4() |
| 13 | NORMAL-DAG: ini0() |
| 14 | NORMAL-DAG: ini1() |
| 15 | NORMAL-DAG: ini2() |
| 16 | NORMAL-DAG: t0() |
| 17 | NORMAL-DAG: t1() |
| 18 | NORMAL-DAG: t2() |
| 19 | NORMAL-DAG: t3() |
| 20 | NORMAL-DAG: t4() |
| 21 | |
| 22 | ; MinUnstable |
| 23 | RUN: %run %t-HandleUnstableTest -print_coverage=1 -handle_unstable=1 -runs=100000 2>&1 | FileCheck %s --check-prefix=MIN |
| 24 | MIN-NOT: ini0() |
| 25 | MIN-NOT: ini1() |
| 26 | MIN-NOT: ini2() |
| 27 | MIN: det0() |
| 28 | MIN: det1() |
| 29 | MIN: det2() |
| 30 | MIN: det3() |
| 31 | MIN: det4() |
| 32 | |
| 33 | ; ZeroUnstable |
| 34 | RUN: %run %t-HandleUnstableTest -print_coverage=1 -handle_unstable=2 -runs=1 2>&1 | FileCheck %s --check-prefix=ZERO |
| 35 | ZERO-NOT: ini0() |
| 36 | ZERO-NOT: ini1() |
| 37 | ZERO-NOT: ini2() |
| 38 | ZERO: det0() |
| 39 | ZERO: det1() |
| 40 | ZERO: det2() |
| 41 | ZERO: det3() |
| 42 | ZERO: det4() |