]> granicus.if.org Git - clang/commit
Improve checks in test/Frontend/ftime-report-template-decl.cpp
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 23 Apr 2018 18:05:35 +0000 (18:05 +0000)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Mon, 23 Apr 2018 18:05:35 +0000 (18:05 +0000)
commite7aef3c2ee8296f3a5fa9be7f4c3a002e6388d0c
tree36f39b7f661a7adcfe1b862fcededd1d2236aeb2
parent6727779002a03fed12a7303f69fad1825150b565
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
test/Frontend/ftime-report-template-decl.cpp