]> diplodocus.org Git - nmh/commitdiff
More homing in on the test-pick warning. Also, removed
authorDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 03:24:53 +0000 (21:24 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 03:24:53 +0000 (21:24 -0600)
warning to user that the tty test is being skipped, it's
not that important.

test/pick/test-pick

index eb8d98844569733d2148d0149bdf70148f7576a0..1c365de4a738eaf66bb49e2002ce473c72760595 100755 (executable)
@@ -100,17 +100,13 @@ EOF
 check "$expected" "$actual"
 
 if test -w /dev/tty; then
 check "$expected" "$actual"
 
 if test -w /dev/tty; then
-  if (printf '' >/dev/tty) 2>/dev/null; then
+  if printf '' >/dev/tty 2>/dev/null; then
     # Produce no standard output if no messages match and standard
     # output is a tty.  To test that even when run with stdout
     # detached, write directly to /dev/tty.  Can't capture the
     # output so hopefully the user will notice it.
     pick -subject message.3 -and -from Test4 >/dev/tty 2>/dev/null
     # Produce no standard output if no messages match and standard
     # output is a tty.  To test that even when run with stdout
     # detached, write directly to /dev/tty.  Can't capture the
     # output so hopefully the user will notice it.
     pick -subject message.3 -and -from Test4 >/dev/tty 2>/dev/null
-  else
-    echo "$0: skip tty test because can't write to /dev/tty"
   fi
   fi
-else
-  echo "$0: skip tty test because can't write to /dev/tty"
 fi
 
 # Also, check that the exit status is 1.
 fi
 
 # Also, check that the exit status is 1.