Skip to content

Commit

Permalink
added isHeadless check to test about UIManager so that it does not fa…
Browse files Browse the repository at this point in the history
…il when ran on a headless image
  • Loading branch information
dupriezt committed Mar 27, 2019
1 parent 15898d4 commit ba3d60e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Debugger-Tests/ErrorWasInUIProcessTests.class.st
Expand Up @@ -15,6 +15,7 @@ ErrorWasInUIProcessTests >> testErrorWasInUIProcessIsFalseWhenDebugSessionWasCre
ErrorWasInUIProcessTests >> testErrorWasInUIProcessIsTrueWhenDebugSessionWasCreatedByTheUIProcess [
"Test that errorWasInUIProcess is true when the DebugSession was created by the UI process"

SmalltalkImage current isHeadless ifFalse: [ ^ true ].
context := [ 1+1] asContext.
"Instead of creating a new process like the other debugger tests, we ask the default ui process to create the DebugSession"
session := UIManager default uiProcess newDebugSessionNamed: 'test session' startedAt: context.
Expand Down

0 comments on commit ba3d60e

Please sign in to comment.