On Sat, 5 Feb 2022 15:01:37 GMT, Kevin Rushforth <[email protected]> wrote:
>> i think /tmp/java-store is ok, as it would not require cleanup
>
> No, it's not OK for two reasons:
>
> 1. It prevents concurrent execution of tests from two different directories
> 2. The Java temp directory might be something other than "/tmp" on some
> systems.
>
> Best is to use a local subdir under the build directory.
i am unable to find other test case which uses local sub-directory in the
build dir so let me know i can use this
String defaultBaseDir = System.getProperty("java.io.tmpdir");
webEngine.setUserDataDirectory(new File(defaultBaseDir + "localstorage")
-------------
PR: https://git.openjdk.java.net/jfx/pull/703