From 8756f74004e73ce9276b9ab698f5043f6e7ffcd7 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 12 Feb 2014 20:52:19 +0000 Subject: Stop io/ftwtest deleting its own output. 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. * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out. --- io/ftwtest-sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io/ftwtest-sh') diff --git a/io/ftwtest-sh b/io/ftwtest-sh index 7341c1f654..db1c6bcc32 100644 --- a/io/ftwtest-sh +++ b/io/ftwtest-sh @@ -69,7 +69,7 @@ ln -s $tmpdir/foo/lvl1/lvl2/lvl3/lvl4 $tmpdir/foo/lvl1/link@1 echo > $tmpdir/bar/xo chmod a-x,a+r $tmpdir/bar -testout=$tmp/ftwtest.out +testout=$tmp/ftwtest-tmp.out $testprogram $tmpdir | sort > $testout -- cgit 1.4.1