projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fail in pick if a massage of -thread has no thread-id
[mmh]
/
test
/
tests
/
pick
/
test-thread-without-msgid
diff --git
a/test/tests/pick/test-thread-without-msgid
b/test/tests/pick/test-thread-without-msgid
index
d693439
..
6058815
100644
(file)
--- a/
test/tests/pick/test-thread-without-msgid
+++ b/
test/tests/pick/test-thread-without-msgid
@@
-12,11
+12,13
@@
actual_out=$MH_TEST_DIR/$$.actual_out
# All messages should be go to stdout
cat > $expected_out <<EOF
# All messages should be go to stdout
cat > $expected_out <<EOF
-5
+0
EOF
# Nothing should to go stderr
EOF
# Nothing should to go stderr
-cat /dev/null > $expected_err
+cat > $expected_err <<EOF
+pick: message 5 is not part of a thread
+EOF
pick -thread 5 > $actual_out 2> $actual_err
pick -thread 5 > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err
-diff -u $expected_out $actual_out
+diff -u $expected_err $actual_err || exit 1
+diff -u $expected_out $actual_out || exit 1