From: David Levine Date: Tue, 28 Feb 2012 02:40:15 +0000 (-0600) Subject: They test with output to a tty didn't work under make distcheck. Tried to work aroun... X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=9ac724c1df34e9dd56e2e35566b0cf81a491e8e6;p=mmh They test with output to a tty didn't work under make distcheck. Tried to work around it by writing directly to /dev/tty, if that's available. --- diff --git a/test/pick/test-pick b/test/pick/test-pick index 2396811..ba7c18b 100755 --- a/test/pick/test-pick +++ b/test/pick/test-pick @@ -97,18 +97,24 @@ cat >$expected <&2-` >$actual -cat >$expected <&2- >/dev/tty` + run_test "echo $output" '' +else + echo "$0: skip tty test because can't write to /dev/tty" +fi # Also, check that the exit status is 1. -set +e -pick -subject message.3 -and -from Test4 2>/dev/null +pick -subject message.3 -and -from Test4 >/dev/null 2>&1 run_test "echo $?" '1' + set -e # Test -cc. @@ -137,8 +143,8 @@ pick -after '28 Sep 2008 00:00:00' >$actual 2>&1 cat >$expected <$actual 2>/dev/null cat >$expected <