From 9ac724c1df34e9dd56e2e35566b0cf81a491e8e6 Mon Sep 17 00:00:00 2001 From: David Levine Date: Mon, 27 Feb 2012 20:40:15 -0600 Subject: [PATCH] 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. --- test/pick/test-pick | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) 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 <