projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pick matching rework
[mmh]
/
test
/
tests
/
pick
/
test-output-on-error
diff --git
a/test/tests/pick/test-output-on-error
b/test/tests/pick/test-output-on-error
index
8d96224
..
07231f0
100644
(file)
--- a/
test/tests/pick/test-output-on-error
+++ b/
test/tests/pick/test-output-on-error
@@
-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
+!