From: Dmitry V. Levin Date: Fri, 3 Jun 2016 23:46:27 +0000 (+0000) Subject: tests/strace-S.test: enhance error diagnostics X-Git-Tag: v4.13~179 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53128b67461b9c0bc22cc4918c010ec918aead23;p=strace tests/strace-S.test: enhance error diagnostics * tests/strace-S.test: If strace output does not meet expectations, print the output. --- diff --git a/tests/strace-S.test b/tests/strace-S.test index 0ffec303..c0e95498 100755 --- a/tests/strace-S.test +++ b/tests/strace-S.test @@ -18,8 +18,11 @@ test_c() [ -s "$OUT" ] || fail_ "$STRACE $args output mismatch" - LC_ALL=C sort -c $sortopts "$OUT" || + LC_ALL=C sort -c $sortopts "$OUT" || { + echo 'Actual output:' + cat < "$LOG" fail_ "$STRACE $args output not sorted properly" + } } c='[[:space:]]\+\([^[:space:]]\+\)'