summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-04-23 18:05:35 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-04-23 18:05:35 +0000
commit6264b0d673bebe162e93fd94572a9c4da754de9c (patch)
treec710dd0465ef26373d610d74a517ae9cac3901f1
parentff5ddf75e3b5eee33beece5216ad276b0b631fd9 (diff)
downloadbcm5719-llvm-6264b0d673bebe162e93fd94572a9c4da754de9c.tar.gz
bcm5719-llvm-6264b0d673bebe162e93fd94572a9c4da754de9c.zip
Improve checks in test/Frontend/ftime-report-template-decl.cpp
Some buildbots seems to have problems with the CHECKs in test/Frontend/ftime-report-template-decl.cpp. I this the problem is that the order in which timers are printed is based on consumed wall time. So there is no guarantee in which order the timers are printed. This patch uses CHECK-DAG instead of CHECK to make the test case less sensitive to the actual time used by the different passes. The (sometimes) failing test cases where introduced in trunk@330571. llvm-svn: 330622
-rw-r--r--clang/test/Frontend/ftime-report-template-decl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Frontend/ftime-report-template-decl.cpp b/clang/test/Frontend/ftime-report-template-decl.cpp
index c4086281d66..9ba9107b980 100644
--- a/clang/test/Frontend/ftime-report-template-decl.cpp
+++ b/clang/test/Frontend/ftime-report-template-decl.cpp
@@ -151,8 +151,8 @@ struct _Wrap_alloc {
_Wrap_alloc<int>::rebind<int> w;
// CHECK: Miscellaneous Ungrouped Timers
-// CHECK: LLVM IR Generation Time
-// CHECK: Code Generation Time
+// CHECK-DAG: LLVM IR Generation Time
+// CHECK-DAG: Code Generation Time
// CHECK: Total
// CHECK: Clang front-end time report
// CHECK: Clang front-end timer
OpenPOWER on IntegriCloud