]> diplodocus.org Git - nmh/commitdiff
Redirect some outputs in the test suite to standard error.
authorDavid Levine <levinedl@acm.org>
Mon, 29 Apr 2013 00:26:58 +0000 (19:26 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 29 Apr 2013 00:26:58 +0000 (19:26 -0500)
test/common.sh.in
test/mhstore/test-mhstore

index 83578724a5093195f86746eee52b600de3ce0805..ff06312fb20b5765958756bc6de82efdbdae800f 100644 (file)
@@ -133,7 +133,7 @@ check_for_hard_links () {
 ####   'keep first'.
 #### If different, global variable "failed" is incremented.
 #### If there's an optional 'ignore space' argument, diff -b will
-#### be used instead of cmp to compare the files.
+####   be used instead of cmp to compare the files.
 check() {
     first=$1; shift
     second=$1; shift
@@ -143,7 +143,7 @@ check() {
         case $1 in
             'keep first')   keepfirst=1 ;;
             'ignore space') ignorespace=1 ;;
-            *) echo "$0: invalid check() argument \"$1\" in test suite" ;;
+            *) echo "$0: invalid check() argument \"$1\" in test suite" >&2 ;;
         esac
         shift
     done
index b92972b3e8dadab3b589e576a69c27bedfbe8084..d1f85427408d5dc6cc7779deae6c4f6ae60b665a 100755 (executable)
@@ -52,11 +52,11 @@ check $expected $stored_contents 'keep first'
 
 # check -outfile
 mhstore 5 -outfile "$actual" 2>&1 | grep -v '^storing' && \
-  echo unexpected output from test-mhstore check -outfile
+  echo unexpected output from test-mhstore check -outfile >&2
 check $expected "$actual" 'keep first'
 
 # check -outfile -
-echo 'storing message 5 to stdout' >> "$expected"
+echo 'storing message 5 to stdout' >>"$expected"
 mhstore 5 -outfile - >"$actual" 2>&1
 check $expected "$actual"