tests/strace-S.test: enhance error diagnostics

* tests/strace-S.test: If strace output does not meet expectations,
print the output.
This commit is contained in:
Дмитрий Левин 2016-06-03 23:46:27 +00:00
parent bad45d5168
commit 53128b6746

View File

@ -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:]]\+\)'