[UpdateCCTestChecks] Fix new test from 9eaf0d120d32
authorJoel E. Denny <jdenny.ornl@gmail.com>
Fri, 25 Jun 2021 18:06:52 +0000 (14:06 -0400)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Fri, 25 Jun 2021 18:29:58 +0000 (14:29 -0400)
`clang/test/utils/update_cc_test_checks/check-globals.test` from
9eaf0d120d32 broke at:

* <https://lab.llvm.org/buildbot/#/builders/110/builds/4415>
* <https://lab.llvm.org/buildbot/#/builders/5/builds/9076>

The problem is non-deterministic test order because the
`.lit_test_times.txt` from one run of a sample test suite affects the
other.

clang/test/utils/update_cc_test_checks/check-globals.test

index 2af041b..def1a8e 100644 (file)
@@ -31,7 +31,8 @@ RUN: rm %t/igf-again.c
 RUN: cp %S/Inputs/lit.cfg.example %t/lit.cfg
 # Show lit failures while avoiding confusing FileCheck input dump nesting.
 RUN: %lit %t
-# Lit was successful.  Sanity-check the results.
+# Lit was successful.  Sanity-check the results with deterministic test order.
+RUN: rm %t/.lit_test_times.txt
 RUN: %lit %t 2>&1 | FileCheck -check-prefix=LIT-RUN %s
 
 END.