diff options
Diffstat (limited to 'tests/destructor/tv2_raise.nim')
-rw-r--r-- | tests/destructor/tv2_raise.nim | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/destructor/tv2_raise.nim b/tests/destructor/tv2_raise.nim index 409cdead8..ed5364923 100644 --- a/tests/destructor/tv2_raise.nim +++ b/tests/destructor/tv2_raise.nim @@ -1,12 +1,12 @@ discard """ - cmd: '''nim c --newruntime $file''' + valgrind: true + cmd: '''nim c -d:allocStats --newruntime $file''' output: '''OK 3 -5 2''' +(allocCount: 8, deallocCount: 3)''' """ import strutils, math import system / ansi_c -import system / allocators proc mainA = try: @@ -50,6 +50,4 @@ except: inc ok echo "OK ", ok - -let (a, d) = allocCounters() -discard cprintf("%ld %ld\n", a, d) +echo getAllocStats() |