]> granicus.if.org Git - strace/commitdiff
tests: enhance error diagnostics
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 19 Jul 2017 08:59:50 +0000 (08:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 19 Jul 2017 08:59:50 +0000 (08:59 +0000)
* 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.

tests/init.sh

index 4ef8dd7a874a4011dc77cb7d4d5c7c886d78a88d..be10d89a3baa70148c9a57304c99da2cac5b0295 100644 (file)
@@ -45,7 +45,7 @@ check_prog()
 
 dump_log_and_fail_with()
 {
-       cat < "$LOG"
+       cat < "$LOG" >&2
        fail_ "$*"
 }