diff options
Diffstat (limited to 'tests/destructor/turn_destroy_into_finalizer.nim')
-rw-r--r-- | tests/destructor/turn_destroy_into_finalizer.nim | 7 |
1 files changed, 5 insertions, 2 deletions
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() |