summaryrefslogtreecommitdiff
path: root/t/instspc.tap
diff options
context:
space:
mode:
Diffstat (limited to 't/instspc.tap')
-rwxr-xr-xt/instspc.tap10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/instspc.tap b/t/instspc.tap
index cbe0fdfdd..a6f776376 100755
--- a/t/instspc.tap
+++ b/t/instspc.tap
@@ -219,8 +219,8 @@ if test $# -gt 0; then
esac
done
# We need to determine the TAP plan adaptively.
- n=`for t in $test_names_list; do echo $t; done | wc -l`
- plan_ `expr $n '*' 2` # Two tests per "problematic string".
+ n=$(for t in $test_names_list; do echo $t; done | wc -l)
+ plan_ $(($n * 2)) # Two tests per "problematic string".
unset n
else
test_names_list=$all_test_names_list
@@ -228,7 +228,7 @@ else
plan_ 94
fi
-ocwd=`pwd` || fatal_ "cannot get current working directory"
+ocwd=$(pwd) || fatal_ "getting current working directory"
create_input_data
@@ -324,10 +324,10 @@ for test_name in $test_names_list; do
# the test directory not to be removed when the script terminates.
if not am_keeping_testdirs && test "$r" = ok; then
rm_rf_ "$build" "$dest" || fatal_ "removing temporary subdirectory"
- else
- : For lesser shells with broken 'set -e'.
fi
+ : For shells with busted 'set -e'.
+
done # $instspc_action
done # $test_name