Skip to content

Commit

Permalink
Fix test-ref logging for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Sep 29, 2023
1 parent 8d92a1d commit 80530b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/scripts/test-ref
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ else
exit_code=0
# shellcheck disable=SC2048
$* 1>"$refs"/stdout.aux 2>"$refs"/stderr.aux || exit_code=$?
echo "Program exit code: $exit_code, stdout size: $(stat -c %s "$refs"/stdout.aux) bytes, stderr size: $(stat -c %s "$refs"/stderr.aux) bytes"
stdout_size=$(wc -c < "$refs"/stdout.aux)
stderr_size=$(wc -c < "$refs"/stderr.aux)
echo "Program exit code: $exit_code, stdout size: $stdout_size bytes, stderr size: $stderr_size bytes"
echo $exit_code >"$refs"/exit_code.aux

# Check exit code is the same
Expand Down

0 comments on commit 80530b3

Please sign in to comment.