]> git.marmaro.de Git - mmh/blobdiff - test/pick/test-pick
Added format support for zputlit function escape. It requires
[mmh] / test / pick / test-pick
index ac9f6e45884bfbfa8b168aef98e9f4d5943e0c88..9b737ceca7b2a3fd7dc02a109045e8029a335e94 100755 (executable)
@@ -87,6 +87,7 @@ NOT
 EOF
 check $expected $actual
 
+set +e
 
 # Produce 0 if no messages match and standard output is not a tty.
 # Note that there is an error message on stderr, but it's redirected
@@ -97,10 +98,7 @@ cat >$expected <<EOF
 EOF
 check $expected $actual
 
-
-set +e
-
-if test -w /dev/tty; then
+if test -w /dev/tty && printf '' >/dev/tty; 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