From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id ABACE38717DE for ; Wed, 14 Dec 2022 21:14:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ABACE38717DE Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 2BELE50u014080 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Dec 2022 16:14:09 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 2BELE50u014080 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1671052450; bh=CJVkg7FglLIG5xCWo7z6vlXkonVzDQaeidyxTLhy26s=; h=From:To:Cc:Subject:Date:From; b=ZPhCRCuOQPGqOUbRbNG/Yzlx0OSE+hLMTPHKO0E0ZF1zFQMwkDl9f0Bg4YkaZnL8W lXzSckuadBvvbh+CUTX4bYTRXO958ghJR/4+zNrkUx1TF1wxXtOp8hNpF9OiSaAfWH KuGkgI8OLLodyH2zclW4L2DQlHvQxNoFqoI+mvIk= Received: from simark.localdomain (unknown [217.28.27.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id D90391E0D3; Wed, 14 Dec 2022 16:14:04 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH] gdb/testsuite: don't delete command files in gdb.base/commands.exp Date: Wed, 14 Dec 2022 16:14:03 -0500 Message-Id: <20221214211403.635684-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 14 Dec 2022 21:14:05 +0000 X-Spam-Status: No, score=-3189.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Don't delete the runtime-generated command files. This makes it easier to reproduce tests by hand. Change-Id: I4e53484eea216512f1c5d7dfcb5c464b36950946 --- gdb/testsuite/gdb.base/commands.exp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/gdb/testsuite/gdb.base/commands.exp b/gdb/testsuite/gdb.base/commands.exp index 933978c0ea10..929a48e47dc3 100644 --- a/gdb/testsuite/gdb.base/commands.exp +++ b/gdb/testsuite/gdb.base/commands.exp @@ -714,8 +714,6 @@ maintenance deprecate set qqq_aaa" gdb_test "set qqq_aaa" \ "Warning: 'set qqq_aaa', an alias for the command 'set xxx_yyy', is deprecated\\.\r\n.*No alternative known\\..*" \ "deprecated alias with prefix give a warning" - - file delete $file1 } # Test that the help for a command does not show deprecated aliases. @@ -848,7 +846,7 @@ proc_with_prefix stray_arg0_test { } { # Test that GDB is able to source a file with an indented comment. proc_with_prefix source_file_with_indented_comment {} { - set file1 [standard_output_file file1] + set file1 [standard_output_file source_file_with_indented_comment] set fd [open "$file1" w] puts $fd \ @@ -864,9 +862,9 @@ echo Done!\n} # Test that GDB can handle arguments when sourcing files recursively. # If the arguments are overwritten with ####### then the test has failed. proc_with_prefix recursive_source_test {} { - set file1 [standard_output_file file1] - set file2 [standard_output_file file2] - set file3 [standard_output_file file3] + set file1 [standard_output_file recursive_source_1] + set file2 [standard_output_file recursive_source_2] + set file3 [standard_output_file recursive_source_3] set fd [open "$file1" w] puts $fd \ @@ -892,10 +890,6 @@ end" gdb_test "source $file1" \ "1: <<>>\[\r\n]+in file3\[\r\n]+2: <<>>" \ "source file" - - file delete $file1 - file delete $file2 - file delete $file3 } proc gdb_test_no_prompt { command result msg } { base-commit: 5d80df4a109e7b648e324423a5fbc3c1ba02e816 -- 2.38.1