source: MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-z_slow/leak_heredoc1.tests@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 440 bytes
Line 
1echo "Warm up"
2i=1
3while test $i != 99; do
4 : <<HERE
5Hello $i `echo builtin_$i`
6HERE
7 : $((i++))
8done
9
10memleak
11
12echo "Measuring memory leak..."
13i=1
14while test $i != 99; do
15 : <<HERE
16Hello $i `echo builtin_$i`
17HERE
18 : $((i++))
19done
20i=1
21while test $i != 99; do
22 : <<HERE
23Hello $i `echo builtin_$i`
24HERE
25 : $((i++))
26done
27
28memleak
29kb=$?
30if test $kb -le 4; then
31 echo Ok #$kb
32else
33 echo "Bad: $kb kb (or more) leaked"
34fi
Note: See TracBrowser for help on using the repository browser.