[squeak-dev] The Trunk: KernelTests-ul.200.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Sep 10 15:02:56 UTC 2011
Levente Uzonyi uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ul.200.mcz
==================== Summary ====================
Name: KernelTests-ul.200
Author: ul
Time: 10 September 2011, 5:02:40.237 pm
UUID: e5a86591-f8c8-0047-a410-3e2da3749024
Ancestors: KernelTests-cmm.198
Added a new test for Monitor documenting a serious bug (related to unwinding), which allows multiple processes to enter the monitor at the same time.
=============== Diff against KernelTests-cmm.198 ===============
Item was added:
+ ----- Method: MonitorTest>>testMonitorNotGainingUnwantedSignalsDuringUnwinding (in category 'examples') -----
+ testMonitorNotGainingUnwantedSignalsDuringUnwinding
+
+ | monitor process |
+ monitor := Monitor new.
+ process := [ monitor critical: [ monitor wait ] ] newProcess.
+ process resume.
+ 50 milliSeconds asDelay wait.
+ process terminate.
+ self assert: 1 equals: ((monitor instVarNamed: #mutex) instVarNamed: #excessSignals)!
More information about the Squeak-dev
mailing list
|