diff options
author | Jim Meyering <meyering@fb.com> | 2016-11-08 19:57:41 -0600 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2016-11-13 17:09:57 -0800 |
commit | 4d4d8bccc341941404dc92d0adc057e67014e2ea (patch) | |
tree | faf04706ebd51a3c7e369110fb23bf80b83cef86 /tests/misc/sync.sh | |
parent | eba871cd3237e8b7dcd9552f544b365934767849 (diff) | |
download | coreutils-4d4d8bccc341941404dc92d0adc057e67014e2ea.tar.xz |
tests: use "returns_" rather than explicit comparison with "$?"
The previous "returns_"-using change failed to convert many
uses of "$?". Convert all but two of the remaining ones.
* tests/ls/stat-vs-dirent.sh: Likewise.
* tests/misc/head-write-error.sh: Likewise.
* tests/misc/nice.sh: Likewise.
* tests/misc/nohup.sh: Likewise.
* tests/misc/stdbuf.sh: Likewise.
* tests/misc/sync.sh: Likewise.
* tests/tail-2/pid.sh: Likewise.
* tests/tail-2/wait.sh: Likewise.
Thanks to Bernhard Volker for spotting this.
Diffstat (limited to 'tests/misc/sync.sh')
-rwxr-xr-x | tests/misc/sync.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/misc/sync.sh b/tests/misc/sync.sh index 5bf569c5f..cd89c5bb9 100755 --- a/tests/misc/sync.sh +++ b/tests/misc/sync.sh @@ -45,8 +45,7 @@ fi if test "$fail" != '1'; then # Ensure a fifo doesn't block mkfifo_or_skip_ fifo - timeout 10 sync fifo - test $? = 124 && fail=1 + returns_ 124 timeout 10 sync fifo && fail=1 fi Exit $fail |