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

Last change on this file since 2725 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • 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.