浏览代码

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330622 91177308-0d34-0410-b5e6-96231b3b80d8
Bjorn Pettersson 7 年之前
父节点
当前提交
e7aef3c2ee
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      test/Frontend/ftime-report-template-decl.cpp

+ 2 - 2
test/Frontend/ftime-report-template-decl.cpp

@@ -151,8 +151,8 @@ struct _Wrap_alloc {
 _Wrap_alloc<int>::rebind<int> w;
 _Wrap_alloc<int>::rebind<int> w;
 
 
 // CHECK: Miscellaneous Ungrouped Timers
 // 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: Total
 // CHECK: Clang front-end time report
 // CHECK: Clang front-end time report
 // CHECK: Clang front-end timer
 // CHECK: Clang front-end timer