[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] [PATCH] tests: cleanup files left behind by sv-52220

From: Bernhard Voelker
Subject: [Findutils-patches] [PATCH] tests: cleanup files left behind by
Date: Mon, 30 Oct 2017 21:25:23 +0100

'make distcheck' failed with:
  ERROR: files left in build directory after distclean:
  Makefile:2064: recipe for target 'distcleancheck' failed

* find/testsuite/ Add command to remove the temporary
files used for stderr output.

Bug introduced in commit v4.6.0-123-gef1581e.
 find/testsuite/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/find/testsuite/ b/find/testsuite/
index eeb9d1f..516e455 100755
--- a/find/testsuite/
+++ b/find/testsuite/
@@ -56,6 +56,7 @@ for exe in "${ftsfind}" "${oldfind}"; do
   returns_ 1 "$exe" -D >/dev/null 2> "$err" || fail=1
   grep -F "find: Missing argument after the -D option." "$err" \
     || { cat "$err"; fail=1; }
+  rm -f "$err" || die "cleanup failed"
 exit $fail

reply via email to

[Prev in Thread] Current Thread [Next in Thread]