Skip to content

Commit 19e80e9

Browse files
authored
Merge pull request pharo-spec#89 from hernanmd/fix_Sindarin_failing_test
Fix failing test in Pharo 12
2 parents a1a1ff4 + 1269b4f commit 19e80e9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Sindarin-Tests/SindarinDebuggerTest.class.st

+7-3
Original file line numberDiff line numberDiff line change
@@ -506,8 +506,10 @@ SindarinDebuggerTest >> testIsExecutionFinished [
506506
scdbg := SindarinDebugger debug: [ self methodWithTwoAssignments ].
507507
self deny: scdbg isExecutionFinished.
508508

509-
[ scdbg isExecutionFinished ] whileFalse: [ scdbg stepOver ].
510-
509+
self
510+
should: [ [ scdbg isExecutionFinished ] whileFalse: [ scdbg stepOver ] ]
511+
raise: DebuggedExecutionIsFinished.
512+
511513
self assert: scdbg currentProcess isTerminated
512514
]
513515

@@ -1787,11 +1789,13 @@ SindarinDebuggerTest >> testStepOver [
17871789

17881790
{ #category : #tests }
17891791
SindarinDebuggerTest >> testStepOverFinishedExecution [
1792+
"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)"
1793+
17901794
|scdbg|
17911795
scdbg := SindarinDebugger debug: [ self methodWithImplicitReturn ].
17921796

17931797
"Stepping until the implicit return of #methodWithImplicitReturn"
1794-
scdbg stepOver: 3.
1798+
scdbg stepOver: 2.
17951799
self should: [scdbg stepOver] raise: DebuggedExecutionIsFinished
17961800
]
17971801

0 commit comments

Comments
 (0)