Skip to content

Commit

Permalink
fixes #8509 disable 4GB allocating test on windows that crashed appve…
Browse files Browse the repository at this point in the history
…yor (#8510)
  • Loading branch information
timotheecour authored and Araq committed Aug 2, 2018
1 parent 78c0ac5 commit 9a390d6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/fragmentation/tfragment_alloc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@ proc main =
dealloc p
# c_fprintf(stdout, "iteration: %ld size: %ld\n", i, size)
when defined(cpu64):
# bug #7120
var x = alloc(((1 shl 29) - 4) * 8)
dealloc x
# see https://github.com/nim-lang/Nim/issues/8509
# this often made appveyor (on windows) fail with out of memory
when defined(posix):
# bug #7120
var x = alloc(((1 shl 29) - 4) * 8)
dealloc x

main()

Expand Down

0 comments on commit 9a390d6

Please sign in to comment.