Some shells don't allow redirection from stdout.
Let's only perform output redirection when fd 1 (stdout) is open
and connected to a terminal.
---
This should fix the x86_64-solaris11-suncc FATE runs
---
tests/regression-funcs.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index ce5aee8..e5da08a 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -35,7 +35,7 @@ mkdir -p "$outfile"
[ "${V-0}" -gt 0 ] && echov=echov || echov=:
echov(){
- echo "$@" >&3
+ if [ -t 1 ]; then echo "$@" >&3; fi
}
. $(dirname $0)/md5.sh
--
1.7.9.2
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel