From edc5bc5020e67c0835b6e4cf8fd9fef81055c148 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Tue, 19 May 2015 12:36:29 +0100 Subject: tests: fix non POSIX constructs causing failures with dash * tests/cp/no-ctx.sh: Scope of `var=val func` is inconsistent across shells, so avoid that construct with functions. * tests/df/no-mtab-status.sh: Likewise. * tests/tail-2/inotify-race.sh: `read` needs an argument. * tests/tail-2/inotify-race2.sh: Likewise. --- tests/tail-2/inotify-race.sh | 2 +- tests/tail-2/inotify-race2.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/tail-2') diff --git a/tests/tail-2/inotify-race.sh b/tests/tail-2/inotify-race.sh index 6e1a7fa40..4ce05083f 100755 --- a/tests/tail-2/inotify-race.sh +++ b/tests/tail-2/inotify-race.sh @@ -83,7 +83,7 @@ gdb -nx --batch-silent \ --eval-command='quit' \ tail < /dev/null > /dev/null 2>&1 & pid=$! -tail --pid=$pid -f tail.out | (read; kill $pid) +tail --pid=$pid -f tail.out | (read REPLY; kill $pid) # gdb has a bug in Debian's gdb-6.8-3 at least that causes it to not # cleanup and exit correctly when it receives a SIGTERM, but diff --git a/tests/tail-2/inotify-race2.sh b/tests/tail-2/inotify-race2.sh index 6d996eba7..1e01d5051 100755 --- a/tests/tail-2/inotify-race2.sh +++ b/tests/tail-2/inotify-race2.sh @@ -88,7 +88,7 @@ gdb -nx --batch-silent \ # anything between coreutils 7.5 and 8.23 inclusive as # The old file descriptor (still held open by tail) was being fstat(). -tail --pid=$pid -f tail.out | (read; kill $pid) +tail --pid=$pid -f tail.out | (read REPLY; kill $pid) # gdb has a bug in Debian's gdb-6.8-3 at least that causes it to not # cleanup and exit correctly when it receives a SIGTERM, but -- cgit v1.2.3-70-g09d2