]> granicus.if.org Git - strace/commitdiff
tests/strace-S.test: enhance error diagnostics
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 3 Jun 2016 23:46:27 +0000 (23:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 6 Jun 2016 18:07:04 +0000 (18:07 +0000)
* tests/strace-S.test: If strace output does not meet expectations,
print the output.

tests/strace-S.test

index 0ffec3037c917af6d48b3d0b8886177d60df675b..c0e954989be1e3323b365d36f9a6383bf789826c 100755 (executable)
@@ -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:]]\+\)'