]> diplodocus.org Git - nmh/commitdiff
OK, test-pick should be good on Solaris now.
authorDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 04:30:36 +0000 (22:30 -0600)
committerDavid Levine <levinedl@acm.org>
Fri, 1 Feb 2013 04:30:36 +0000 (22:30 -0600)
test/pick/test-pick

index 1c365de4a738eaf66bb49e2002ce473c72760595..07eff1ffb3f32dbceb5f7c18ce956a4c860dc03e 100755 (executable)
@@ -99,14 +99,12 @@ cat >"$expected" <<EOF
 EOF
 check "$expected" "$actual"
 
-if test -w /dev/tty; 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
-  fi
+if test -w /dev/tty  &&  (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
 fi
 
 # Also, check that the exit status is 1.