fixes #8509 disable 4GB allocating test on windows that crashed appveyor (#8510)

This commit is contained in:
Timothee Cour 2018-08-02 04:33:46 -07:00 • committed by Andreas Rumpf
commit 9a390d66fb

View file

@ -16,9 +16,12 @@ proc main =
dealloc p dealloc p
# c_fprintf(stdout, "iteration: %ld size: %ld\n", i, size) # c_fprintf(stdout, "iteration: %ld size: %ld\n", i, size)
when defined(cpu64): when defined(cpu64):
# bug #7120 # see https://github.com/nim-lang/Nim/issues/8509
var x = alloc(((1 shl 29) - 4) * 8) # this often made appveyor (on windows) fail with out of memory
dealloc x when defined(posix):
# bug #7120
var x = alloc(((1 shl 29) - 4) * 8)
dealloc x
main() main()