From: Alexandre Oliva Date: Wed, 22 Jun 2022 02:10:59 +0000 (-0300) Subject: testsuite: outputs.exp: cleanup before running tests X-Git-Tag: basepoints/gcc-14~6010 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a1790ac6b475e9848e24200de9a1c44be422f5b;p=thirdparty%2Fgcc.git testsuite: outputs.exp: cleanup before running tests Use the just-added dry-run infrastructure to clean up files that may have been left over by interrupted runs of outputs.exp, which used to lead to spurious non-repeatable (self-fixing) failures. for gcc/testsuite/ChangeLog * gcc.misc-tests/outputs.exp: Clean up left-overs first. --- diff --git a/gcc/testsuite/gcc.misc-tests/outputs.exp b/gcc/testsuite/gcc.misc-tests/outputs.exp index a63ce66693b..ab919db1ccb 100644 --- a/gcc/testsuite/gcc.misc-tests/outputs.exp +++ b/gcc/testsuite/gcc.misc-tests/outputs.exp @@ -304,6 +304,9 @@ if { "$aout" != "" } then { set oaout "-o $aout" } +# Clean up any left-overs from an earlier interrupted run. +outest "$b-cleanup?" $sing "$oaout" {alt/ dir/ o/ od/ obj/} {{} {} {} {} {} {$aout}} + # Sometimes the -I or -L flags that cause the compiler driver to save # .args.[01], instead of leaving it for the linker to save .ld1_args, # is hiding in driver self specs.