diff --git a/source3/script/tests/test_failure.sh b/source3/script/tests/test_failure.sh index 4980fb09201..7a2c9aec38c 100755 --- a/source3/script/tests/test_failure.sh +++ b/source3/script/tests/test_failure.sh @@ -4,7 +4,7 @@ # # Copyright (C) 2011 Michael Adam -incdir=`dirname $0`/../../../testprogs/blackbox +incdir=$(dirname $0)/../../../testprogs/blackbox . $incdir/subunit.sh failed=0 @@ -20,16 +20,15 @@ test_success() } testit "success" \ - test_success || \ - failed=`expr $failed + 1` + test_success || + failed=$(expr $failed + 1) testit "failure" \ - test_failure || \ - failed=`expr $failed + 1` + test_failure || + failed=$(expr $failed + 1) testit "success" \ - test_success || \ - failed=`expr $failed + 1` + test_success || + failed=$(expr $failed + 1) testok $0 $failed -