leak_empty_tick.tests 339 B

12345678910111213141516171819202122232425262728
  1. echo "Warm up"
  2. i=1
  3. while test $i != 9; do
  4. `true`
  5. : $((i++))
  6. done
  7. memleak
  8. echo "Measuring memory leak..."
  9. i=1
  10. while test $i != 199; do
  11. `true`
  12. : $((i++))
  13. done
  14. i=1
  15. while test $i != 199; do
  16. `true`
  17. : $((i++))
  18. done
  19. memleak
  20. kb=$?
  21. if test $kb -le 4; then
  22. echo Ok #$kb
  23. else
  24. echo "Bad: $kb kb (or more) leaked"
  25. fi