aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

jdk8 hs Windows com/sun/jdi tests fail in ShellScaffold.sh: C:\Windows/tmp.6102: Permission denied

Open andrew-m-leonard opened this issue 4 years ago • 2 comments

This test also fails on zLinux for a different problem here: https://github.com/AdoptOpenJDK/openjdk-tests/issues/2408

https://trss.adoptopenjdk.net/output/test?id=605ba25b5730424dbcb67d31

The ShellScaffold.sh script tries to create a tmp file using the wrong slashes for CYGWIN environment: https://github.com/AdoptOpenJDK/openjdk-jdk8u/blob/a1d853a5d797f38f7be8c260f4a83c1b3fe48adc/jdk/test/com/sun/jdi/ShellScaffold.sh#L271

causing:

[2021-03-24T19:20:22.349Z] ShellScaffold.sh: Version
[2021-03-24T19:20:22.349Z] E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi/ShellScaffold.sh: line 277: C:\Windows/tmp.6102: Permission denied
[2021-03-24T19:20:22.349Z] cat: 'C:\Windows/tmp.6102': No such file or directory
[2021-03-24T19:20:22.349Z] mkdir: cannot create directory '/aa6102': Permission denied
[2021-03-24T19:20:22.349Z] touch: cannot touch '/aa6102/jxdbOutput.txt': No such file or directory
[2021-03-24T19:20:22.349Z] E:/workspace/Test_openjdk8_hs_sanity.openjdk_x86-64_windows/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/jdi/ShellScaffold.sh: line 380: cd: /aa6102: No such file or directory

The logic needs to use correct slashes depending on Windows or Cygwin.

andrew-m-leonard avatar Mar 26 '21 12:03 andrew-m-leonard

The ShellScaffold.sh usage of a tmpFile here: https://github.com/AdoptOpenJDK/openjdk-jdk8u/blob/a1d853a5d797f38f7be8c260f4a83c1b3fe48adc/jdk/test/com/sun/jdi/ShellScaffold.sh#L270 Probably needs changing to do something more like this example here for Windows/Cygwin: https://github.com/AdoptOpenJDK/openjdk-jdk8u/blob/a1d853a5d797f38f7be8c260f4a83c1b3fe48adc/jdk/test/javax/imageio/spi/AppletContextTest/BadPluginConfigurationTest.sh#L96 and use the TMP location to create the tmpFile...

andrew-m-leonard avatar Mar 26 '21 13:03 andrew-m-leonard

https://bugs.openjdk.org/browse/JDK-8295164, once this in we can remove tests referenced with https://github.com/adoptium/aqa-tests/issues/2415 from problem list.

https://github.com/adoptium/aqa-tests/blob/master/openjdk/excludes/ProblemList_openjdk8.txt#L400-L434

sophia-guo avatar Oct 13 '22 14:10 sophia-guo