summaryrefslogtreecommitdiff
path: root/tests/test-select-out.sh
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-03-10 11:32:11 +0100
committerBruno Haible <bruno@clisp.org>2019-03-10 11:32:11 +0100
commit4c0df5be84fc27c52d99576fc82ea88f0385eef1 (patch)
tree8b5ae5090a4807a6c1071e2dff5a4abde196f4b8 /tests/test-select-out.sh
parent5db7774f1eac47f348237f8cedef9dd37cd79b47 (diff)
downloadgnulib-4c0df5be84fc27c52d99576fc82ea88f0385eef1.tar.gz
tests: Prepare for using valgrind.
tests/*.sh: Invoke all test programs through ${CHECKER}. tests/*/*.sh: Likewise.
Diffstat (limited to 'tests/test-select-out.sh')
-rwxr-xr-xtests/test-select-out.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-select-out.sh b/tests/test-select-out.sh
index c5fd8619f6..dbeace505e 100755
--- a/tests/test-select-out.sh
+++ b/tests/test-select-out.sh
@@ -9,25 +9,25 @@ tmpfiles="$tmpfiles t-select-out.out t-select-out.tmp"
# Regular files.
rm -f t-select-out.tmp
-./test-select-fd${EXEEXT} w 1 t-select-out.tmp > t-select-out.out
+${CHECKER} ./test-select-fd${EXEEXT} w 1 t-select-out.tmp > t-select-out.out
test `cat t-select-out.tmp` = "1" || exit 1
# Pipes.
if false; then # This test fails on some platforms.
rm -f t-select-out.tmp
- ( { echo abc; ./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | { sleep 1; cat; } ) > /dev/null
+ ( { echo abc; ${CHECKER} ./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | { sleep 1; cat; } ) > /dev/null
test `cat t-select-out.tmp` = "0" || exit 1
fi
rm -f t-select-out.tmp
-( { sleep 1; echo abc; ./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | cat) > /dev/null
+( { sleep 1; echo abc; ${CHECKER} ./test-select-fd${EXEEXT} w 1 t-select-out.tmp; } | cat) > /dev/null
test `cat t-select-out.tmp` = "1" || exit 1
# Special files.
rm -f t-select-out.tmp
-./test-select-fd${EXEEXT} w 1 t-select-out.tmp > /dev/null
+${CHECKER} ./test-select-fd${EXEEXT} w 1 t-select-out.tmp > /dev/null
test `cat t-select-out.tmp` = "1" || exit 1
rm -fr $tmpfiles