From 8a94048092597fc9bd43864a7ac7f830e5ace97f Mon Sep 17 00:00:00 2001 From: DEMAREY Christophe Date: Thu, 21 Mar 2024 11:40:39 +0100 Subject: [PATCH] isolate 8 --- .../PhLLaunchImageTest.class.st | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/src/PharoLauncher-Tests-Functional/PhLLaunchImageTest.class.st b/src/PharoLauncher-Tests-Functional/PhLLaunchImageTest.class.st index 04d26313..e20e09e5 100644 --- a/src/PharoLauncher-Tests-Functional/PhLLaunchImageTest.class.st +++ b/src/PharoLauncher-Tests-Functional/PhLLaunchImageTest.class.st @@ -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 } @@ -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 [ @@ -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 |