summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2012-03-15 20:17:49 +0000
committerDmitry V. Levin <ldv@altlinux.org>2012-03-15 20:17:49 +0000
commit84abf700110ef54ac2bf8de4b09c54ca437f390a (patch)
treeac10f9a629318a9062636662b984606cc1d09f11 /tests
parent3362e89f66acde52605c654d904b2aebceb92297 (diff)
downloadstrace-84abf700110ef54ac2bf8de4b09c54ca437f390a.tar.gz
strace-84abf700110ef54ac2bf8de4b09c54ca437f390a.tar.bz2
strace-84abf700110ef54ac2bf8de4b09c54ca437f390a.tar.xz
tests: robustify again buggy shells
* tests/init.sh (check_strace): Use "${parameter:-word}" shell syntax instead of "${parameter-word}". Reported-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/init.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/init.sh b/tests/init.sh
index 5176d05..b0dbbf8 100644
--- a/tests/init.sh
+++ b/tests/init.sh
@@ -16,7 +16,7 @@ check_prog()
check_strace()
{
- STRACE=${*-../strace}
+ STRACE=${*:-../strace}
$STRACE -V > /dev/null ||
framework_failure_ "$STRACE is not available"
}