public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: "Maciej W. Rozycki" <macro@orcam.me.uk>
Cc: binutils@sourceware.org
Subject: Re: [PATCH 0/3] GAS/testsuite: Make sure none.s is not overwritten
Date: Fri, 14 Jun 2024 09:49:34 +0930	[thread overview]
Message-ID: <ZmuMliXvk3J2W82J@squeak.grove.modra.org> (raw)
In-Reply-To: <alpine.DEB.2.21.2406111127020.9248@angie.orcam.me.uk>

On Tue, Jun 11, 2024 at 12:51:18PM +0100, Maciej W. Rozycki wrote:
> 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

Thanks, the series looks good.  Please apply.

-- 
Alan Modra

  parent reply	other threads:[~2024-06-14  0:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
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 ` Alan Modra [this message]
2024-06-17 22:31   ` [PATCH 0/3] GAS/testsuite: Make sure none.s is not overwritten Maciej W. Rozycki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZmuMliXvk3J2W82J@squeak.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=binutils@sourceware.org \
    --cc=macro@orcam.me.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).