tests/leaks.sh: test unalias (re: 5d50f825)
This commit is contained in:
parent
7303824789
commit
69679be8d7
|
|
@ -246,5 +246,16 @@ done
|
|||
after=$(getmem)
|
||||
err_exit_if_leak 'typeset in function called by command substitution'
|
||||
|
||||
# ======
|
||||
# Check that unsetting an alias frees both the node and its value
|
||||
|
||||
before=$(getmem)
|
||||
for ((i=0; i < N; i++))
|
||||
do alias "test$i=command$i"
|
||||
unalias "test$i"
|
||||
done
|
||||
after=$(getmem)
|
||||
err_exit_if_leak 'unalias'
|
||||
|
||||
# ======
|
||||
exit $((Errors<125?Errors:125))
|
||||
|
|
|
|||
Loading…
Reference in New Issue