diff options
author | Bruno Haible <bruno@clisp.org> | 2019-03-10 11:32:11 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-03-10 11:32:11 +0100 |
commit | 4c0df5be84fc27c52d99576fc82ea88f0385eef1 (patch) | |
tree | 8b5ae5090a4807a6c1071e2dff5a4abde196f4b8 /tests/test-select-in.sh | |
parent | 5db7774f1eac47f348237f8cedef9dd37cd79b47 (diff) | |
download | gnulib-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-in.sh')
-rwxr-xr-x | tests/test-select-in.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-select-in.sh b/tests/test-select-in.sh index 44f5dbb8e8..68176d3059 100755 --- a/tests/test-select-in.sh +++ b/tests/test-select-in.sh @@ -12,25 +12,25 @@ tmpfiles="$tmpfiles t-select-in.tmp" # Regular files. rm -f t-select-in.tmp -./test-select-fd${EXEEXT} r 0 t-select-in.tmp < ./test-select-fd${EXEEXT} +${CHECKER} ./test-select-fd${EXEEXT} r 0 t-select-in.tmp < ./test-select-fd${EXEEXT} test `cat t-select-in.tmp` = "1" || exit 1 # Pipes. rm -f t-select-in.tmp { sleep 1; echo abc; } | \ - { ./test-select-fd${EXEEXT} r 0 t-select-in.tmp; cat > /dev/null; } + { ${CHECKER} ./test-select-fd${EXEEXT} r 0 t-select-in.tmp; cat > /dev/null; } test `cat t-select-in.tmp` = "0" || exit 1 rm -f t-select-in.tmp -echo abc | { sleep 1; ./test-select-fd${EXEEXT} r 0 t-select-in.tmp; } +echo abc | { sleep 1; ${CHECKER} ./test-select-fd${EXEEXT} r 0 t-select-in.tmp; } test `cat t-select-in.tmp` = "1" || exit 1 # Special files. # This part of the test is known to fail on Solaris 2.6 and older. rm -f t-select-in.tmp -./test-select-fd${EXEEXT} r 0 t-select-in.tmp < /dev/null +${CHECKER} ./test-select-fd${EXEEXT} r 0 t-select-in.tmp < /dev/null test `cat t-select-in.tmp` = "1" || exit 1 rm -fr $tmpfiles |