Author: bjope Date: Mon Apr 23 11:05:35 2018 New Revision: 330622 URL: http://llvm.org/viewvc/llvm-project?rev=330622&view=rev Log: 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. Modified: cfe/trunk/test/Frontend/ftime-report-template-decl.cpp Modified: cfe/trunk/test/Frontend/ftime-report-template-decl.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Frontend/ftime-report-template-decl.cpp?rev=330622&r1=330621&r2=330622&view=diff ============================================================================== --- cfe/trunk/test/Frontend/ftime-report-template-decl.cpp (original) +++ cfe/trunk/test/Frontend/ftime-report-template-decl.cpp Mon Apr 23 11:05:35 2018 @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits