summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2014-10-16 10:33:46 +0100
committerPádraig Brady <P@draigBrady.com>2014-10-16 10:42:17 +0100
commit437f24764963ca2935e1bce368667f8270275a4b (patch)
treeddbdbec59246c372c68751bbd82257b56f0cf2d5 /tests/cp
parentd520929586ee2063d48359aaaef8f28807604cae (diff)
downloadcoreutils-437f24764963ca2935e1bce368667f8270275a4b.tar.xz
tests: fix test hang with unstable inodes in /proc
* cp/proc-zero-len.sh: Search the 'err' file for the error to ignore, not stdin.
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/proc-zero-len.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cp/proc-zero-len.sh b/tests/cp/proc-zero-len.sh
index 3fcd5aab1..8dd846060 100755
--- a/tests/cp/proc-zero-len.sh
+++ b/tests/cp/proc-zero-len.sh
@@ -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,