source: MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-z_slow/leak_empty_tick.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: 339 bytes
Line 
1echo "Warm up"
2i=1
3while test $i != 9; do
4 `true`
5 : $((i++))
6done
7
8memleak
9
10echo "Measuring memory leak..."
11i=1
12while test $i != 199; do
13 `true`
14 : $((i++))
15done
16i=1
17while test $i != 199; do
18 `true`
19 : $((i++))
20done
21
22memleak
23kb=$?
24if test $kb -le 4; then
25 echo Ok #$kb
26else
27 echo "Bad: $kb kb (or more) leaked"
28fi
Note: See TracBrowser for help on using the repository browser.