[squeak-dev] The Trunk: KernelTests-ct.414.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Dec 15 15:11:04 UTC 2021
Christoph Thiede uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ct.414.mcz
==================== Summary ====================
Name: KernelTests-ct.414
Author: ct
Time: 15 December 2021, 4:11:01.657981 pm
UUID: cb6d662b-dfc8-5241-844f-6b65f40731e5
Ancestors: KernelTests-ct.413, KernelTests-jar.413
Merges KernelTests-jar.413 (currently red).
Revision: Avoided breaking the test runner by only running assertions only on the original process. Aligned the test to older siblings.
=============== Diff against KernelTests-ct.413 ===============
Item was added:
+ ----- Method: ProcessTest>>testProcessFaithfulTermination (in category 'tests') -----
+ testProcessFaithfulTermination
+ "When terminating a process, unwind blocks should be evaluated as if they were executed by the process being terminated."
+
+ | process result |
+ process := [
+ [Processor activeProcess suspend]
+ ensure: [result := Processor activeProcess environmentAt: #foo]]
+ fork.
+ Processor yield.
+ process environmentAt: #foo put: 42.
+
+ process terminate.
+
+ self should: process isTerminated.
+ self assert: 42 equals: result.!
More information about the Squeak-dev
mailing list
|