Skip to content

Commit

Permalink
isolate 8
Browse files Browse the repository at this point in the history
  • Loading branch information
demarey committed Mar 21, 2024
1 parent ff338d0 commit 8a94048
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions src/PharoLauncher-Tests-Functional/PhLLaunchImageTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,42 @@ PhLLaunchImageTest >> createPharoVersionFileForCurrentPharoVersion: imageVersion
nextPutAll: SystemVersion current minor asString ]


]

{ #category : #tests }
PhLLaunchImageTest >> estArchitectureErrorSignaledWhenTryingToRun32BitImageOn64BitOnlyOS [
| image |
image := PhLOsXCatalinaTestImage example32.

self
should: [ process := image launchWithConfiguration: nil ]
raise: PhLArchitectureError


]

{ #category : #tests }
PhLLaunchImageTest >> estCanLaunchImageWithNonAsciiCharactersUsingLoginShell [

PhLLaunchConfiguration launchInALoginShell: true.
self testCanLaunchImageWithNonAsciiCharacters.
]

{ #category : #tests }
PhLLaunchImageTest >> estCanRun64bitImageOn64BitOnlyOS [
| image config commandToEval |
image := PhLOsXCatalinaTestImage example.
self createPharoVersionFileForCurrentPharoVersion: image vmManager imageVersionFile.
commandToEval := '"''' , imageDir fullName , '/result'' asFileReference writeStreamDo:[ :s | s nextPutAll: (1 + 1) asString ]"'.
config := image defaultLaunchConfiguration.
config imageArguments: {'eval' . commandToEval}.

self
shouldnt: [ process := image launchWithConfiguration: config ]
raise: PhLArchitectureError



]

{ #category : #utils }
Expand Down Expand Up @@ -85,18 +121,6 @@ PhLLaunchImageTest >> tearDown [
super tearDown
]

{ #category : #tests }
PhLLaunchImageTest >> testArchitectureErrorSignaledWhenTryingToRun32BitImageOn64BitOnlyOS [
| image |
image := PhLOsXCatalinaTestImage example32.

self
should: [ process := image launchWithConfiguration: nil ]
raise: PhLArchitectureError


]

{ #category : #tests }
PhLLaunchImageTest >> testCanLaunchImageWithNonAsciiCharacters [

Expand All @@ -115,30 +139,6 @@ PhLLaunchImageTest >> testCanLaunchImageWithNonAsciiCharacters [
"for now, no simple way to test that the image is actually launched"
]

{ #category : #tests }
PhLLaunchImageTest >> testCanLaunchImageWithNonAsciiCharactersUsingLoginShell [

PhLLaunchConfiguration launchInALoginShell: true.
self testCanLaunchImageWithNonAsciiCharacters.
]

{ #category : #tests }
PhLLaunchImageTest >> testCanRun64bitImageOn64BitOnlyOS [
| image config commandToEval |
image := PhLOsXCatalinaTestImage example.
self createPharoVersionFileForCurrentPharoVersion: image vmManager imageVersionFile.
commandToEval := '"''' , imageDir fullName , '/result'' asFileReference writeStreamDo:[ :s | s nextPutAll: (1 + 1) asString ]"'.
config := image defaultLaunchConfiguration.
config imageArguments: {'eval' . commandToEval}.

self
shouldnt: [ process := image launchWithConfiguration: config ]
raise: PhLArchitectureError



]

{ #category : #tests }
PhLLaunchImageTest >> testLaunchImageSetShouldRunInitilizationScriptToFalse [
| image |
Expand Down

0 comments on commit 8a94048

Please sign in to comment.