Skip to content

Commit e011514

Browse files
committed
#56: fix correct destructor test output and handle coroutine context in garbage collection
1 parent 05c447e commit e011514

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/gc/011-gc_destructor_cycles_with_suspend.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ After GC
8080
Destructor start: object-B
8181
Suspended in destructor: object-B
8282
Still has reference to: object-A
83-
Test complete
84-
Destructor end: object-B
8583
Destructor start: object-A
8684
Suspended in destructor: object-A
8785
Still has reference to: object-B
86+
Test complete
87+
Destructor end: object-B
8888
Destructor end: object-A

tests/gc/012-gc_destructor_multiple_gc_cycles.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ Created: batch2-B
9191
Total destructors called: 2
9292
Destructor start: batch2-A (count: 3)
9393
Suspended in destructor: batch2-A
94-
Test complete
95-
Destructor end: batch2-A
9694
Destructor start: batch2-B (count: 4)
9795
Suspended in destructor: batch2-B
96+
Test complete
97+
Destructor end: batch2-A
9898
Destructor end: batch2-B

0 commit comments

Comments
 (0)