Skip to content

Commit

Permalink
Merge pull request #89 from hernanmd/fix_Sindarin_failing_test
Browse files Browse the repository at this point in the history
Fix failing test in Pharo 12
  • Loading branch information
jecisc authored Feb 1, 2024
2 parents a1a1ff4 + 1269b4f commit 19e80e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/Sindarin-Tests/SindarinDebuggerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,10 @@ SindarinDebuggerTest >> testIsExecutionFinished [
scdbg := SindarinDebugger debug: [ self methodWithTwoAssignments ].
self deny: scdbg isExecutionFinished.

[ scdbg isExecutionFinished ] whileFalse: [ scdbg stepOver ].

self
should: [ [ scdbg isExecutionFinished ] whileFalse: [ scdbg stepOver ] ]
raise: DebuggedExecutionIsFinished.

self assert: scdbg currentProcess isTerminated
]

Expand Down Expand Up @@ -1787,11 +1789,13 @@ SindarinDebuggerTest >> testStepOver [

{ #category : #tests }
SindarinDebuggerTest >> testStepOverFinishedExecution [
"This test tries to show is that using Sindarin on a block, it should raise an exception if you continue stepping over that code in your Sindarin script while the execution of that code is already finished (nothing more to step)"

|scdbg|
scdbg := SindarinDebugger debug: [ self methodWithImplicitReturn ].

"Stepping until the implicit return of #methodWithImplicitReturn"
scdbg stepOver: 3.
scdbg stepOver: 2.
self should: [scdbg stepOver] raise: DebuggedExecutionIsFinished
]

Expand Down

0 comments on commit 19e80e9

Please sign in to comment.