Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
This test counts on being unable to create
/some_invalid_dir/foo
And if it does somehow succeed, it'll affect the filesystem (which it apparently can at least on Windows under some circumstances and maybe Unix if you're super-user).
It seems safer to create a temp dir and explicitly disable write permissions on it and use that instead. See attached patch. While I don't have a Windows machine to test on, the javadocs assure me that I can disable write perms this way on Windows...