summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2018-08-02 04:33:46 -0700
committerAndreas Rumpf <rumpf_a@web.de>2018-08-02 13:33:46 +0200
commit9a390d66fb86eb68851000738be5744bea1261a0 (patch)
treee7ea1aebd087a81a310199d6cae6f785adf6c063
parent78c0ac54070e860ec0ed8ac0b58658f7ad52227a (diff)
downloadNim-9a390d66fb86eb68851000738be5744bea1261a0.tar.gz
fixes #8509 disable 4GB allocating test on windows that crashed appveyor (#8510)
-rw-r--r--tests/fragmentation/tfragment_alloc.nim9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/fragmentation/tfragment_alloc.nim b/tests/fragmentation/tfragment_alloc.nim
index 5a44b7434..80341d2dc 100644
--- a/tests/fragmentation/tfragment_alloc.nim
+++ b/tests/fragmentation/tfragment_alloc.nim
@@ -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()