]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix test hang with unstable inodes in /proc
authorPádraig Brady <P@draigBrady.com>
Thu, 16 Oct 2014 09:33:46 +0000 (10:33 +0100)
committerPádraig Brady <P@draigBrady.com>
Thu, 16 Oct 2014 09:42:17 +0000 (10:42 +0100)
* cp/proc-zero-len.sh: Search the 'err' file
for the error to ignore, not stdin.

tests/cp/proc-zero-len.sh

index 3fcd5aab13504365cfdc8b55deaed9da00f8b87e..8dd846060511b6d87d8e7b1435a54894ae914c8b 100755 (executable)
@@ -31,7 +31,7 @@ cat $f > out || fail=1
 # number of the file changed during the cp run.
 cp $f exp 2>err \
   || { fail=1;
-       grep 'replaced while being copied' \
+       grep 'replaced while being copied' err \
          && skip_ "File $f is being replaced while being copied"; }
 
 # Don't simply compare contents; they might differ,