I think file writeStream of File does not honor FileSystem configuration.
In the end of the message chain you have the primitive call "primOpen:
fileName writable: writableFlag".

Try changing your test code to this:

testFileExists
        | file |
        file := FileSystem workingDirectory / 'asd.txt'.
        file writeStream close.
        self assert: file exists.
        file delete

This should work. I don't know, however, if that is the best practice or
not.

On Wed, Oct 19, 2016 at 3:33 PM, wvzuilen <wvzui...@gmail.com> wrote:

> I've tried that. Like this: FileSystem disk workingDirectoryPath: Path /
> 'Users/myusername/Desktop'.
> As expected it changes my working directory, but the test mentioned in my
> first post still fails. ?!?
>
>
>
> --
> View this message in context: http://forum.world.st/Default-
> working-directory-macOS-tp4919393p4919408.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>

Reply via email to