From e0115146921ec4fbebc03ff0dcb2208d1a3cb195 Mon Sep 17 00:00:00 2001 From: Edmond <1571649+EdmondDantes@users.noreply.github.com> Date: Tue, 30 Sep 2025 20:02:35 +0300 Subject: [PATCH] #56: fix correct destructor test output and handle coroutine context in garbage collection --- tests/gc/011-gc_destructor_cycles_with_suspend.phpt | 4 ++-- tests/gc/012-gc_destructor_multiple_gc_cycles.phpt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/gc/011-gc_destructor_cycles_with_suspend.phpt b/tests/gc/011-gc_destructor_cycles_with_suspend.phpt index 3f6a988..df5d6c7 100644 --- a/tests/gc/011-gc_destructor_cycles_with_suspend.phpt +++ b/tests/gc/011-gc_destructor_cycles_with_suspend.phpt @@ -80,9 +80,9 @@ After GC Destructor start: object-B Suspended in destructor: object-B Still has reference to: object-A -Test complete -Destructor end: object-B Destructor start: object-A Suspended in destructor: object-A Still has reference to: object-B +Test complete +Destructor end: object-B Destructor end: object-A \ No newline at end of file diff --git a/tests/gc/012-gc_destructor_multiple_gc_cycles.phpt b/tests/gc/012-gc_destructor_multiple_gc_cycles.phpt index 56c55e9..31f5fc7 100644 --- a/tests/gc/012-gc_destructor_multiple_gc_cycles.phpt +++ b/tests/gc/012-gc_destructor_multiple_gc_cycles.phpt @@ -91,8 +91,8 @@ Created: batch2-B Total destructors called: 2 Destructor start: batch2-A (count: 3) Suspended in destructor: batch2-A -Test complete -Destructor end: batch2-A Destructor start: batch2-B (count: 4) Suspended in destructor: batch2-B +Test complete +Destructor end: batch2-A Destructor end: batch2-B \ No newline at end of file