From: Dmitry V. Levin Date: Wed, 19 Jul 2017 08:59:50 +0000 (+0000) Subject: tests: enhance error diagnostics X-Git-Tag: v4.19~246 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8444b32f38a801674a03521851e06109bc80e72;p=strace tests: enhance error diagnostics * tests/init.sh (dump_log_and_fail_with): Dump $LOG to stderr instead of stdout as the latter is more likely to be redirected to a temporary file in the context where this function is called. --- diff --git a/tests/init.sh b/tests/init.sh index 4ef8dd7a..be10d89a 100644 --- a/tests/init.sh +++ b/tests/init.sh @@ -45,7 +45,7 @@ check_prog() dump_log_and_fail_with() { - cat < "$LOG" + cat < "$LOG" >&2 fail_ "$*" }