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:
parent
bad45d5168
commit
53128b6746
@ -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:]]\+\)'
|
||||
|
Loading…
Reference in New Issue
Block a user