Skip to content

Commit

Permalink
[fix] update setup to run images
Browse files Browse the repository at this point in the history
  • Loading branch information
hogoww committed Jan 29, 2021
1 parent fd18868 commit ccd5ff3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions smalltalksrc/VMMakerTests/VMSpurMemoryManagerTest.class.st
Expand Up @@ -524,7 +524,8 @@ VMSpurMemoryManagerTest >> setUpScheduler [

{ #category : #running }
VMSpurMemoryManagerTest >> setUpUsingImage [

"/!\ Only runnable with a wordsize equals to your image's (needs disabling parametizing of wordsize) /!\"

"This is an alternate setUp using an image to correctly initialize memory/interpreter.
Currently not used by default, as some tests still fails, but is usable.
For example, we could test that all test are working on both a specific setup, and image load one.
Expand All @@ -535,8 +536,7 @@ VMSpurMemoryManagerTest >> setUpUsingImage [

"You currently have to setup the path by hand, I do not rememeber/know how to get the directory from a repository, to do a correct relative path
Sorry :3"
self halt.
interpreter openOn: 'fileToPath'.
interpreter openOn: 'YourImageHere.image'.
interpreter initStackPages.
interpreter loadInitialContext.

Expand All @@ -546,14 +546,15 @@ VMSpurMemoryManagerTest >> setUpUsingImage [
newSpaceSize := memory oldSpaceStart -memory newSpaceStart.
oldSpaceSize := memory oldSpaceSize.

stackBuilder := VMStackBuilder new
methodBuilder := VMMethodBuilder new
interpreter: interpreter;
memory: memory;
yourself.
methodBuilder := VMMethodBuilder new

stackBuilder := VMStackBuilder new
interpreter: interpreter;
memory: memory;
methodBuilder: methodBuilder;
yourself.

]
Expand Down

0 comments on commit ccd5ff3

Please sign in to comment.