public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] GAS/testsuite: Make sure none.s is not overwritten
@ 2024-06-11 11:51 Maciej W. Rozycki
  2024-06-11 11:51 ` [PATCH 1/3] binutils/testsuite: Add a helper for relative path construction Maciej W. Rozycki
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Maciej W. Rozycki @ 2024-06-11 11:51 UTC (permalink / raw)
  To: binutils

Hi,

 Previously I have reported:

FAIL: Output file must be distinct from input

regressions, where the fallout is that gas/testsuite/gas/all/none.s gets 
overwritten causing:

FAIL: gas/all/none

regressions for any subsequent test runs using the same source tree.  

 Running the testsuite is not supposed to clobber the sources and the 
causing test is dangerous in that it specifies a file in the source tree 
both as an input source file and the output object file for GAS, relying 
on GAS refusing to overwrite its input, the sole purpose of the test, and 
allowing for GAS clobbering it, should it fail the test.  

 This mini patch series addresses the issue, by copying input from the 
source tree to the test temporary directory and operating on it there.  A 
couple of helper TCL procedures have been defined, which is what the 
introductory patches are for.

 No regressions across my usual list of targets, counting total 239 right 
now, and the intermittent regressions removed.

  Maciej

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-06-17 22:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-11 11:51 [PATCH 0/3] GAS/testsuite: Make sure none.s is not overwritten Maciej W. Rozycki
2024-06-11 11:51 ` [PATCH 1/3] binutils/testsuite: Add a helper for relative path construction Maciej W. Rozycki
2024-06-11 11:51 ` [PATCH 2/3] GAS/testsuite: Add a helper for paths outside the source dir Maciej W. Rozycki
2024-06-11 11:51 ` [PATCH 3/3] GAS/testsuite: Make a copy of none.s before operating on it as output Maciej W. Rozycki
2024-06-14  0:19 ` [PATCH 0/3] GAS/testsuite: Make sure none.s is not overwritten Alan Modra
2024-06-17 22:31   ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).