X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6106441685a38400d9aa94ccb7218218102f941c..ddb9e8ca47b9e881df743c4f79f631bfc14ef76a:/test/pick/test-stderr?ds=inline diff --git a/test/pick/test-stderr b/test/pick/test-stderr index f3212da1..9c1dac3d 100755 --- a/test/pick/test-stderr +++ b/test/pick/test-stderr @@ -5,11 +5,12 @@ # ###################################################### -if [ -z "${MH_TEST_COMMON}" ]; then - echo "MH_TEST_COMMON not set; try running via 'make check'" +if test -z "${MH_OBJ_DIR}"; then + srcdir=`dirname "$0"`/../.. + MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR fi -. ${MH_TEST_COMMON} +. "$MH_OBJ_DIR/test/common.sh" setup_test @@ -27,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"