From 2452d39120085af8c43433a82eccd26f482f4437 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sun, 28 Apr 2013 19:26:58 -0500 Subject: [PATCH] Redirect some outputs in the test suite to standard error. --- test/common.sh.in | 4 ++-- test/mhstore/test-mhstore | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/common.sh.in b/test/common.sh.in index 83578724..ff06312f 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -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 diff --git a/test/mhstore/test-mhstore b/test/mhstore/test-mhstore index b92972b3..d1f85427 100755 --- a/test/mhstore/test-mhstore +++ b/test/mhstore/test-mhstore @@ -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" -- 2.56.0