[squeak-dev] The Trunk: ToolsTests-ct.109.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Jan 30 20:28:26 UTC 2022
Christoph Thiede uploaded a new version of ToolsTests to project The Trunk:
http://source.squeak.org/trunk/ToolsTests-ct.109.mcz
==================== Summary ====================
Name: ToolsTests-ct.109
Author: ct
Time: 30 January 2022, 9:28:24.728804 pm
UUID: c56e0d9a-d3df-4230-97bf-e1823ca8d154
Ancestors: ToolsTests-ct.108
Fixes #testUnwindDebugger on CI contexts where the StandardToolSet is not present by default.
=============== Diff against ToolsTests-ct.108 ===============
Item was changed:
----- Method: DebuggerTests>>tearDown (in category 'running') -----
tearDown
debugger ifNotNil: [debugger close].
process ifNotNil: [process terminateAggressively].
process := nil.
debugger := nil.
window := nil.
+ reset ifNotNil: [
+ reset do: #value].
- reset do: #value.
super tearDown.!
Item was changed:
----- Method: DebuggerUnwindBug>>testUnwindDebugger (in category 'tests') -----
testUnwindDebugger
"test if unwind blocks work properly when a debugger is closed"
| sema process debugger top |
sema := Semaphore forMutualExclusion.
self assert: sema isSignaled.
process := [sema critical:[sema wait]] forkAt: Processor userInterruptPriority.
self deny: sema isSignaled.
"everything set up here - open a debug notifier"
+ debugger := Debugger
+ openOn: process
+ context: process suspendedContext
+ label: 'test'
+ contents: nil
+ fullView: false.
- debugger := process debugWithTitle: 'test' full: false.
"get into the debugger"
debugger debug.
top := debugger topView.
"set top context"
debugger toggleContextStackIndex: 1.
"close debugger"
top delete.
+
-
"and see if unwind protection worked"
self assert: sema isSignaled.!
More information about the Squeak-dev
mailing list
|