]> diplodocus.org Git - nmh/blobdiff - test/pick/test-stderr
Filter converted text/html to remove blank lines and leading space
[nmh] / test / pick / test-stderr
index 07a2cf2701b037e8d1324cd8a39548d6905ce1b1..9c1dac3d22c5f26be1225dd9391f7231ad6f8a69 100755 (executable)
@@ -6,8 +6,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"
@@ -28,6 +28,6 @@ EOF
 # Nothing should to go stdout.
 cat /dev/null > $expected_out
 
-pick -a > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err || exit 1
-diff -u $expected_out $actual_out || exit 1
+run_prog pick -a > $actual_out 2> $actual_err
+check "$expected_err" "$actual_err"
+check "$expected_out" "$actual_out"