From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 8462A385703E; Tue, 21 Jun 2022 00:16:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8462A385703E Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] testsuite: outputs.exp: cleanup before running tests X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: ff3b53148270ae5646c32c58f7e396ca5dbd8f34 X-Git-Newrev: 5a2a464dddd9d159d7d8c4dd5b5ad5fc75dace87 Message-Id: <20220621001608.8462A385703E@sourceware.org> Date: Tue, 21 Jun 2022 00:16:08 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2022 00:16:08 -0000 https://gcc.gnu.org/g:5a2a464dddd9d159d7d8c4dd5b5ad5fc75dace87 commit 5a2a464dddd9d159d7d8c4dd5b5ad5fc75dace87 Author: Alexandre Oliva Date: Mon Jun 20 19:43:52 2022 -0300 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: --- gcc/testsuite/gcc.misc-tests/outputs.exp | 3 +++ 1 file changed, 3 insertions(+) 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.