From a5ecbf823f178c2800d40bcff562bc4eca0f2030 Mon Sep 17 00:00:00 2001 From: Arne Döring Date: Wed, 5 Dec 2018 19:03:01 +0100 Subject: lots of small changes --- tests/destructor/tmove_objconstr.nim | 2 +- tests/destructor/turn_destroy_into_finalizer.nim | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'tests/destructor') diff --git a/tests/destructor/tmove_objconstr.nim b/tests/destructor/tmove_objconstr.nim index 51aba1592..875f78283 100644 --- a/tests/destructor/tmove_objconstr.nim +++ b/tests/destructor/tmove_objconstr.nim @@ -36,7 +36,7 @@ proc pointlessWrapper(s: string): Data = proc main = var x = pointlessWrapper"test" -when isMainModule: +when true: main() # bug #985 diff --git a/tests/destructor/turn_destroy_into_finalizer.nim b/tests/destructor/turn_destroy_into_finalizer.nim index f5b705593..b3f34003e 100644 --- a/tests/destructor/turn_destroy_into_finalizer.nim +++ b/tests/destructor/turn_destroy_into_finalizer.nim @@ -1,5 +1,5 @@ discard """ - output: '''true''' + output: "turn_destroy_into_finalizer works" """ type @@ -17,6 +17,9 @@ proc main = for i in 1..50_000: new(r) r.id = i - echo destroyed > 30_000 + if destroyed > 30_000: + echo "turn_destroy_into_finalizer works" + else: + echo "turn_destroy_into_finalizer failed: ", destroyed main() -- cgit 1.4.1-2-gfad0