X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/93a31f9b884f8e8f3f7a7d50cf90ffd365a14f7c..2e45544e082577402083dec7e23089d74ac7d89f:/test/repl/test-if-str diff --git a/test/repl/test-if-str b/test/repl/test-if-str index 2ed4fd0b..ecfafb65 100755 --- a/test/repl/test-if-str +++ b/test/repl/test-if-str @@ -9,8 +9,8 @@ ###################################################### if test -z "${MH_OBJ_DIR}"; then - srcdir=`dirname $0`/../.. - MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi . "$MH_OBJ_DIR/test/common.sh" @@ -40,6 +40,11 @@ Test1 writes: > This is message number 1 EOF -repl -editor true -format -form $form -group -nocc me -nowhatnowproc 1 || exit 1 +run_prog repl -editor true -format -form $form -group -nocc me \ + -nowhatnowproc 1 || exit 1 -diff -u $expected $actual +check "$expected" "$actual" + +test ${failed:-0} -eq 0 && rm "$form" + +exit $failed