3
0

leak_var3.tests 672 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Was seen leaking on NOMMU build
  2. echo "Warm up"
  3. i=1; t=1; export t
  4. while test $i != 400; do
  5. t=valueA_$i true
  6. : $((i++))
  7. done
  8. memleak
  9. echo "Measuring memory leak..."
  10. # Please copy the entire block from above verbatim
  11. i=1; t=1; export t
  12. while test $i != 400; do
  13. t=valueA_$i true
  14. : $((i++))
  15. done
  16. i=1; t=1; export t
  17. while test $i != 400; do
  18. t=valueA_$i true
  19. : $((i++))
  20. done
  21. i=1; t=1; export t
  22. while test $i != 400; do
  23. t=valueA_$i true
  24. : $((i++))
  25. done
  26. i=1; t=1; export t
  27. while test $i != 400; do
  28. t=valueA_$i true
  29. : $((i++))
  30. done
  31. memleak
  32. kb=$?
  33. if test $kb -le 4; then
  34. echo Ok #$kb
  35. else
  36. echo "Bad: $kb kb (or more) leaked"
  37. fi