This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Stop io/ftwtest deleting its own output
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Wed, 12 Feb 2014 15:22:29 -0500
- Subject: Re: Stop io/ftwtest deleting its own output
- Authentication-results: sourceware.org; auth=none
- References: <Pine dot LNX dot 4 dot 64 dot 1402121839050 dot 5339 at digraph dot polyomino dot org dot uk>
On 02/12/2014 01:40 PM, Joseph S. Myers wrote:
> If you rerun "make check" in a tree where some tests have already been
> run, it will rerun io/ftwtest-sh because that test uses ftwtest.out,
> the same name to which output is redirected, as its internal temporary
> file, and then removes it on exit.
>
> Clearly tests should not be removing the files to which their output
> is redirected like that. This patch changes the script to use a
> different file as its internal temporary file, so the actual output
> referenced in the makefile isn't removed.
>
> Tested x86_64.
>
> 2014-02-12 Joseph Myers <joseph@codesourcery.com>
>
> * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
Obviously correct. Should have [COMITTED] in the subject :-)
Cheers,
Carlos.