summaryrefslogtreecommitdiff
path: root/tests/misc/sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/sync.sh')
-rwxr-xr-xtests/misc/sync.sh3
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