X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=test%2Ftests%2Fpick%2Ftest-thread;fp=test%2Ftests%2Fpick%2Ftest-thread;h=0397e11cbb135680b936d40e7ac5e3509abe4b00;hp=0000000000000000000000000000000000000000;hb=1a1646dc54cace9984b36a1c12e1831d51fa89f1;hpb=76e95977668d89054ced87fc7d379464713e2ee9 diff --git a/test/tests/pick/test-thread b/test/tests/pick/test-thread new file mode 100644 index 0000000..0397e11 --- /dev/null +++ b/test/tests/pick/test-thread @@ -0,0 +1,25 @@ +#!/bin/sh +###################################################### +# +# Test that the -thread option works. +# +###################################################### + +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 + +# All messages should be go to stdout +cp `mhpath 5` 5.old +anno -component 'Message-Id' -text '' 5 -nodate +cat > $expected_out < $expected_err + +pick -thread 5 > $actual_out 2> $actual_err +mv 5.old `mhpath 5` +diff -u $expected_err $actual_err +diff -u $expected_out $actual_out