From: David Levine Date: Fri, 1 Feb 2013 02:04:50 +0000 (-0600) Subject: it looks like the write to /dev/tty is causing the warning from X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2f3e60ab51648c4e0cf0e686600428cd5f56aa66?ds=inline;hp=-c it looks like the write to /dev/tty is causing the warning from test-pick on Solaris, here's an attempt to squelch that. --- 2f3e60ab51648c4e0cf0e686600428cd5f56aa66 diff --git a/test/pick/test-pick b/test/pick/test-pick index 3fff7775..eb8d9884 100755 --- a/test/pick/test-pick +++ b/test/pick/test-pick @@ -99,8 +99,8 @@ cat >"$expected" </dev/null; then - if printf '' >/dev/tty; then +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