summary refs log tree commit diff stats
path: root/tests/destructor/towned_binary_tree.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/destructor/towned_binary_tree.nim')
-rw-r--r--tests/destructor/towned_binary_tree.nim11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/destructor/towned_binary_tree.nim b/tests/destructor/towned_binary_tree.nim
index 372b1d3d8..fb635e7c6 100644
--- a/tests/destructor/towned_binary_tree.nim
+++ b/tests/destructor/towned_binary_tree.nim
@@ -1,7 +1,7 @@
 discard """
-  cmd: '''nim c --newruntime $file'''
-  output: '''331665
-allocs 0'''
+  cmd: '''nim c -d:nimAllocStats --gc:arc $file'''
+  output: '''31665
+(allocCount: 33334, deallocCount: 33334)'''
 """
 
 #  bug #11053
@@ -72,7 +72,7 @@ proc main() =
     cur = 5'i32
     res = 0
 
-  for i in 1 ..< 1000000:
+  for i in 1 ..< 100000:
     let a = i mod 3
     cur = (cur * 57 + 43) mod 10007
     case a:
@@ -87,6 +87,5 @@ proc main() =
       discard
   echo res
 
-when isMainModule:
+dumpAllocStats:
   main()
-  echo "allocs ", allocs