Hello
I clearly didn't test this properly. It now fails with:
--- FAIL: TestFreeOSMemory-89 (0.00 seconds)
garbage_test.go:86: released before=0; released after=0; did not go up
FAIL
Regards
Albert
It always works the first time, right? I suggest moving the allocation back to
the global (it is there so that there cannot be any trace of the allocation
lying around on the test goroutine stack) and then just make the test do:
if big == nil {
return
}
so that subsequent tests do not repeat the test.
Issue 7319050: code review 7319050: runtime/debug: make TestFreeOSMemory repeatable
(Closed)
Created 12 years ago by dvyukov
Modified 12 years ago
Reviewers: albert.strasheim, rsc
Base URL:
Comments: 0