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