Skip to content
Browse files

added isHeadless check to test about UIManager so that it does not fa…

…il when ran on a headless image
  • Loading branch information
dupriezt committed Mar 27, 2019
1 parent 15898d4 commit ba3d60ebaea6904abc355e21396c60feed85b7da
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/Debugger-Tests/
@@ -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.

0 comments on commit ba3d60e

Please sign in to comment.
You can’t perform that action at this time.