From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 1C15F385AE4E; Tue, 21 Jun 2022 00:08:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C15F385AE4E 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: a094527e837ab8c74b1430770bd7c77ee818ec66 X-Git-Newrev: a217b9be7851127e14215a02deb396e0549bf2aa Message-Id: <20220621000816.1C15F385AE4E@sourceware.org> Date: Tue, 21 Jun 2022 00:08:16 +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:08:16 -0000 https://gcc.gnu.org/g:a217b9be7851127e14215a02deb396e0549bf2aa commit a217b9be7851127e14215a02deb396e0549bf2aa 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. TN: T123-051 TN: V526-022 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.