From 53128b67461b9c0bc22cc4918c010ec918aead23 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 3 Jun 2016 23:46:27 +0000 Subject: [PATCH] tests/strace-S.test: enhance error diagnostics * tests/strace-S.test: If strace output does not meet expectations, print the output. --- tests/strace-S.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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:]]\+\)' -- 2.50.1