A new version of KernelTests was added to project The Inbox: http://source.squeak.org/inbox/KernelTests-jr.446.mcz
==================== Summary ====================
Name: KernelTests-jr.446 Author: jr Time: 9 November 2023, 3:10:49.238163 pm UUID: 09c3e782-fb6c-1a4e-8287-d2567640f438 Ancestors: KernelTests-pre.445
Complements Kernel-jr.1532
Test that notifications that are not meant to interrupt the control flow are not caught while evaluating a future send.
The test example `Object future comment` was provided by Christoph Thiede (ct).
=============== Diff against KernelTests-pre.445 ===============
Item was added: + ----- Method: FutureTest>>testNotificationsAreNotCaught (in category 'tests') ----- + testNotificationsAreNotCaught + "The deferred evaluation below uses CurrentReadOnlySourceFiles. The error handling of the future promise must not interfere with this Notification." + | p1 | + p1 := Object future comment. + self waitUntil: [p1 isResolved] orCycleCount: 1. + self assert: p1 isResolved. + !
I guess Notification future signal would have done the job, too, but that is nitpicking. +1. :-)
Best, Christoph
--- Sent from Squeak Inbox Talk
On 2023-11-09T14:10:51+00:00, commits@source.squeak.org wrote:
A new version of KernelTests was added to project The Inbox: http://source.squeak.org/inbox/KernelTests-jr.446.mcz
==================== Summary ====================
Name: KernelTests-jr.446 Author: jr Time: 9 November 2023, 3:10:49.238163 pm UUID: 09c3e782-fb6c-1a4e-8287-d2567640f438 Ancestors: KernelTests-pre.445
Complements Kernel-jr.1532
Test that notifications that are not meant to interrupt the control flow are not caught while evaluating a future send.
The test example `Object future comment` was provided by Christoph Thiede (ct).
=============== Diff against KernelTests-pre.445 ===============
Item was added:
- ----- Method: FutureTest>>testNotificationsAreNotCaught (in category 'tests') -----
- testNotificationsAreNotCaught
- "The deferred evaluation below uses CurrentReadOnlySourceFiles. The error handling of the future promise must not interfere with this Notification."
- | p1 |
- p1 := Object future comment.
- self waitUntil: [p1 isResolved] orCycleCount: 1.
- self assert: p1 isResolved.
- !
squeak-dev@lists.squeakfoundation.org