]> diplodocus.org Git - nmh/blobdiff - test/whatnow/test-attach-detach
That didn't work. Try including termcap.h first, instead of
[nmh] / test / whatnow / test-attach-detach
index fe5785cda34ab8c5f32a3b0aa3d9a7e67ad841ac..27dcb9cdd6f62b7a9aeb400aac58bcc9c719e558 100755 (executable)
@@ -38,10 +38,10 @@ touch $expected $expectederr $actual $actualerr
 #
 
 set +e
-whatnowtest="$(echo cd | TERM=dumb whatnow -prompt '')"
+whatnowtest=`echo cd | TERM=dumb run_prog whatnow -prompt ''`
 set -e
 
-case "${whatnowtest}" in
+case ${whatnowtest} in
     cd) cat > "$expected" <<EOF
 attach $testname_quoted
 alist
@@ -49,26 +49,27 @@ $testname
 detach $testname_quoted
 alist
 EOF
-    break;;
+    ;;
     "") cat > "$expected" <<EOF
 $testname
 EOF
-    break;;
+    ;;
     *) echo "Unknown response to whatnow readline test"
     echo "Response is: ${whatnowtest}"
     exit 1
-    break;;
+    ;;
 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 '' \
+  TERM=dumb run_prog whatnow -attach foo -noedit -prompt '' 2>> $actualerr \
+    >> $actual
+echo "alist" | TERM=dumb 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 '' \
+echo "alist" | TERM=dumb run_prog whatnow -attach foo -noedit -prompt '' \
                                2>> $actualerr >> $actual
 set -e