RFR(XS): 8172188 - JDI tests fail due to "permission denied" when creating temp file

mikhailo mikhailo.seledtsov at oracle.com
Thu Jan 5 17:57:43 UTC 2017


Change looks good to me.


Misha


On 01/05/2017 09:41 AM, Christian Tornqvist wrote:
> Hi everyone,
>
>   
>
> Please review this small change that fixes an issue where the temp file for
> some of the JDI tests is being written to %SYSTEMROOT%, this is the \Windows
> folder where normal users are not able to (and shouldn't) write. When
> running these shell tests as non-admin, they fail with:
>
>   
>
> C:/source/jdk9-hs/jdk/test/com/sun/jdi/ShellScaffold.sh: line 286:
> C:\WINDOWS/tmp.214820: Permission denied
>
> cat: 'C:\WINDOWS/tmp.214820': No such file or directory
>
>   
>
> The correct place for these temp files are in %TEMP% , verified the fix
> locally on my Windows 10 machine by running the jdk/test/com/sun/jdi tests.
>
>   
>
> Webrev:
>
> http://cr.openjdk.java.net/~ctornqvi/webrev/8172188/webrev.00/
>
>   
>
> Bug:
>
> https://bugs.openjdk.java.net/browse/JDK-8172188
>
>   
>
> Thanks,
> Christian
>



More information about the hotspot-runtime-dev mailing list