X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/587e977a97865f091131355f6dd250ece99f7adb..7986520468a4956200566b728d9ea2263e28e2bc:/test/whatnow/test-attach-detach diff --git a/test/whatnow/test-attach-detach b/test/whatnow/test-attach-detach index 9f308aa3..f7c39e9d 100755 --- a/test/whatnow/test-attach-detach +++ b/test/whatnow/test-attach-detach @@ -17,6 +17,9 @@ fi setup_test +# Set TERM to get consistent output. +TERM=dumb; export TERM + cd "$MH_TEST_DIR" testname="baz's boz" testname_quoted="baz\'s\ boz" @@ -38,7 +41,7 @@ touch $expected $expectederr $actual $actualerr # set +e -whatnowtest=`echo cd | TERM=dumb whatnow -prompt ''` +whatnowtest=`echo cd | whatnow -prompt ''` set -e case ${whatnowtest} in @@ -63,13 +66,13 @@ esac # whatnow's exit status is always 1 so that is not a failure set +e echo "attach $testname_quoted" | \ - TERM=dumb whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual -echo "alist" | TERM=dumb whatnow -attach foo -noedit -prompt '' \ - 2>> $actualerr >> $actual + run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual +echo "alist" | \ + run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual echo "detach $testname_quoted" | \ - TERM=dumb whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual -echo "alist" | TERM=dumb whatnow -attach foo -noedit -prompt '' \ - 2>> $actualerr >> $actual + run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual +echo "alist" | \ + run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr >> $actual set -e check "$expectederr" "$actualerr"