-if [ $? != 52 ]; then
- echo ENSURE-DIRECTORIES-EXIST test failed, unexpected SBCL return code=$?
- find $testdir -print
- exit 1
-fi
-if [ ! -d $testdir/foo/bar ] ; then
- echo test failed: $testdir/foo/bar is not a directory
- find $testdir -print
+check_status_maybe_lose "ENSURE-DIRECTORIES-EXIST" $?
+if [ ! -d "$testdir/foo/bar" ] ; then
+ echo test failed: "$testdir/foo/bar" is not a directory
+ find "$testdir" -print