pick matching rework
[mmh] / test / tests / pick / test-normal-output
index bd1a2e7..292dd23 100644 (file)
@@ -5,13 +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"
 
 # All messages should be go to stdout
-cat > $expected_out <<EOF
+runandcheck pick <<!
 1
 2
 3
@@ -22,10 +19,4 @@ cat > $expected_out <<EOF
 8
 9
 10
-EOF
-# Nothing should to go stderr
-cat /dev/null > $expected_err
-
-pick > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err
-diff -u $expected_out $actual_out
+!