← Commit list

08daf564a

Denis Vlasenko
Denis Vlasenko
2009-04-08
FAILED Duration: 33s

Subject

hush: add a leak test which currently fails

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/hush_test/hush-z_slow/leak_var3.right+3 -0
@@ -0,0 +1,3 @@
+Warm up
+Measuring memory leak...
+Ok
shell/hush_test/hush-z_slow/leak_var3.tests+41 -0
@@ -0,0 +1,41 @@
+# Was seen leaking on NOMMU build
+
+echo "Warm up"
+i=1; t=1; export t
+while test $i != 400; do
+ t=valueA_$i true
+ : $((i++))
+done
+
+memleak
+echo "Measuring memory leak..."
+
+# Please copy the entire block from above verbatim
+i=1; t=1; export t
+while test $i != 400; do
+ t=valueA_$i true
+ : $((i++))
+done
+i=1; t=1; export t
+while test $i != 400; do
+ t=valueA_$i true
+ : $((i++))
+done
+i=1; t=1; export t
+while test $i != 400; do
+ t=valueA_$i true
+ : $((i++))
+done
+i=1; t=1; export t
+while test $i != 400; do
+ t=valueA_$i true
+ : $((i++))
+done
+
+memleak
+kb=$?
+if test $kb -le 4; then
+ echo Ok #$kb
+else
+ echo "Bad: $kb kb (or more) leaked"
+fi