Skip to content

Commit

Permalink
tests/leaks.sh: Include the amount of memory leaked in error output
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnoKing committed Jul 8, 2020
1 parent 322832f commit 779d00b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/ksh93/tests/leaks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ do
stuff[xyz][elem4]="data4"
done
after=$(getmem)
(( after > before )) && err_exit 'unset of associative array causes memory leak'
(( after > before )) && err_exit 'unset of associative array causes memory leak' \
"(leaked $((after - before)) KiB)"

# ======
exit $((Errors<125?Errors:125))

0 comments on commit 779d00b

Please sign in to comment.