pick matching rework
[mmh] / test / tests / pick / test-thread-without-msgid
index 6058815..154c9c0 100644 (file)
@@ -5,20 +5,9 @@
 #
 ######################################################
 
-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"
 
-# All messages should be go to stdout
-cat > $expected_out <<EOF
-0
-EOF
-# Nothing should to go stderr
-cat > $expected_err <<EOF
+runandcheck 'pick -thread 5' <<!
 pick: message 5 is not part of a thread
-EOF
-
-pick -thread 5 > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err || exit 1
-diff -u $expected_out $actual_out || exit 1
+0
+!