[Utils] Run non-filecheck runlines in-order in update_cc_test_checks
authorGiorgis Georgakoudis <georgakoudis1@llnl.gov>
Sat, 1 May 2021 04:48:32 +0000 (21:48 -0700)
committerGiorgis Georgakoudis <georgakoudis1@llnl.gov>
Tue, 4 May 2021 19:06:03 +0000 (12:06 -0700)
commit92f2c39f915adc8f71be02d2604df4916069c9d4
tree5bb31a589b0b4a29acf9608d3e85f68fa69d064b
parent313ee609e16b93a7d81cd595f8cffdb408390495
[Utils] Run non-filecheck runlines in-order in update_cc_test_checks

The script update_cc_test_checks runs all non-filechecked runlines before the filechecked ones. This creates problems since outputs of those non-filechecked runlines may conflict and that will fail the execution of update_cc_test_checks. This patch executes non-filechecked in the order specified in the test file to avoid this issue.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D101683
clang/test/utils/update_cc_test_checks/Inputs/exec-all-runlines.c
clang/test/utils/update_cc_test_checks/Inputs/exec-all-runlines.c.expected
llvm/utils/update_cc_test_checks.py