[squeak-dev] The Trunk: ToolsTests-ct.108.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Fri Dec 17 09:18:23 UTC 2021


Thanks :-) Interesting to see that the tool forced you to add a "counter := nil" even though the code clearly does not require it.

Best,
Marcel
Am 17.12.2021 01:31:06 schrieb commits at source.squeak.org <commits at source.squeak.org>:
Christoph Thiede uploaded a new version of ToolsTests to project The Trunk:
http://source.squeak.org/trunk/ToolsTests-ct.108.mcz

==================== Summary ====================

Name: ToolsTests-ct.108
Author: ct
Time: 17 December 2021, 1:30:55.571987 am
UUID: 90d16e62-54a8-5b43-91b0-fdfb4090afa2
Ancestors: ToolsTests-ct.107

Documents choice of priorities in DebuggerTests >> #test01UserInterrupt. Thanks to Marcel (mt)!

=============== Diff against ToolsTests-ct.107 ===============

Item was changed:
----- Method: DebuggerTests>>test01UserInterrupt (in category 'tests') -----
test01UserInterrupt

| counter |
+ counter := nil.
{
[ [counter := counter + 1] repeat ].
[ [counter := counter + 1. true] whileTrue ].
"[ counter := counter + 1. Smalltalk createStackOverflow ]." "Disabled because VM may actually crash under certain conditions."
} do: [:workBlock |
+ "Interrupt must work for all common process priorities below lowIOPriority. Test it for some example priorities based on the existing priority constants."
{
Processor userSchedulingPriority.
Processor userSchedulingPriority + 1.
+ Processor userInterruptPriority.
+ "Processor userInterruptPriority + 1." "Disabled because this might hit the finalization process."
- Processor userInterruptPriority
} do: [:workPriority |
counter := 0.
self doTestUserInterruptFor: workBlock priority: workPriority.
self assert: counter > 0.
self assert: debugger isNotifier]].!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211217/bbd819e8/attachment.html>


More information about the Squeak-dev mailing list