Christoph Thiede uploaded a new version of Tests to project The Trunk: http://source.squeak.org/trunk/Tests-ct.503.mcz
==================== Summary ====================
Name: Tests-ct.503 Author: ct Time: 13 January 2024, 9:26:44.03906 pm UUID: 70a433e6-4b0a-fb47-9201-9a401559ca05 Ancestors: Tests-dtl.502
Complements Chronology-Core-jar.91 (fixes concurrency issue in #valueWithin:onTimeout:).
=============== Diff against Tests-dtl.502 ===============
Item was added: + ----- Method: TestValueWithinFix>>testValueWithinTermination (in category 'tests') ----- + testValueWithinTermination + "Regression test for synchronization issue (https://github.com/squeak-smalltalk/squeak-object-memory/issues/108)" + + | process watchdog | + process := [[100 milliSeconds wait] valueWithin: 200 milliSeconds onTimeout: []] newProcess. + "simulate a possible context switch in primitiveResume" + process runUntil: [:c | c isClosureContext and: [c size > 0 and: [(watchdog := c top) isKindOf: Process]]]. + self assert: watchdog isSuspended. + + process step. + process terminate. + + 250 milliSeconds wait. + self assert: watchdog isTerminated. + self assert: process isTerminated.!
squeak-dev@lists.squeakfoundation.org