]> git.marmaro.de Git - mmh/blobdiff - test/tests/pick/test-output-on-error
pick matching rework
[mmh] / test / tests / pick / test-output-on-error
index 8d9622404707cc752ccf03d8948f372006d61eb7..07231f0484b18ad370d503753d5b4ed6c38740c1 100644 (file)
@@ -5,20 +5,10 @@
 #
 ######################################################
 
 #
 ######################################################
 
-expected_err=$MH_TEST_DIR/$$.expected_err
-expected_out=$MH_TEST_DIR/$$.expected_out
-actual_err=$MH_TEST_DIR/$$.actual_err
-actual_out=$MH_TEST_DIR/$$.actual_out
+. "$MH_TEST_COMMON"
 
 # A zero should go to standard out to protect other programms
 
 # A zero should go to standard out to protect other programms
-cat > $expected_out <<EOF
-0
-EOF
-# Error message should go to stderr.
-cat > $expected_err <<EOF
+runandcheck 'pick -after tomorrow' <<!
 pick: no messages match specification
 pick: no messages match specification
-EOF
-
-pick -after tomorrow > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err
-diff -u $expected_out $actual_out
+0
+!