fix 386 malloc tests,
detect 386 darwin breakpoint line.
R=r
DELTA=22 (4 added, 0 deleted, 18 changed)
OCL=29929
CL=29944
diff --git a/test/mallocrep.go b/test/mallocrep.go
index 6aa8fdf..6306e59 100644
--- a/test/mallocrep.go
+++ b/test/mallocrep.go
@@ -36,11 +36,14 @@
if i == 0 && *chatty {
println("First alloc:", j);
}
- b := malloc.Alloc(uint64(j));
+ if a := malloc.GetStats().Alloc; a != 0 {
+ panicln("no allocations but stats report", a, "bytes allocated");
+ }
+ b := malloc.Alloc(uintptr(j));
during := malloc.GetStats().Alloc;
malloc.Free(b);
if a := malloc.GetStats().Alloc; a != 0 {
- panicln("malloc wrong count", a, "after", j, "during", during);
+ panic("allocated ", j, ": wrong stats: during=", during, " after=", a, " (want 0)");
}
bigger();
}