JDK-7152791 : wbapi tests fail on cygwin
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: hs24
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2012-03-10
  • Updated: 2013-06-26
  • Resolved: 2012-03-31
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Related Reports
Relates :  
Relates :  
Description
The wbapi tests do not run correctly on cygwin (they run correctly on mks, solaris and linux).
Sample test failure from jprt with -release jdk8 (which uses cygwin):

( C:/jprt/products/P1/gnumake3.81/cygwin/bin/make.exe ALT_SLASH_JAVA=C:/jprt/slashjava JPRT_PRODUCT_PATH=C:/jprt/temp/P1/211057.jcoomes/testproduct/windows_i586_5.1-fastdebug
  JPRT_ARCHIVE_BUNDLE=C:/jprt/temp/P1/211057.jcoomes/bundles/windows_i586-fastdebug-c1-wbapitest.zip wbapitest )
rm -f -r /cygdrive/c/jprt/temp/P1/211057.jcoomes/source/test/../build/-/testoutput
rm -f C:/jprt/temp/P1/211057.jcoomes/bundles/windows_i586-fastdebug-c1-wbapitest.zip
C:/jprt/products/P1/jtreg4.1-latest/jtreg/win32/bin/jtreg -a -v:fail,error               \
          -k:\!ignore                   \
                          \
          -r:/cygdrive/c/jprt/temp/P1/211057.jcoomes/source/test/../build/-/testoutput/JTreport    \
          -w:/cygdrive/c/jprt/temp/P1/211057.jcoomes/source/test/../build/-/testoutput/JTwork      \
          -jdk:C:/jprt/temp/P1/211057.jcoomes/testproduct/windows_i586_5.1-fastdebug                  \
          -vmoption:-client -vmoption:-Duser.home=C:/jprt/temp/P1/211057.jcoomes -vmoption:-Djava.io.tmpdir=C:/jprt/temp/P1/211057.jcoomes/io/windows_i586-fastdebug-c1-wbapitest         \
          /cygdrive/c/jprt/temp/P1/211057.jcoomes/source/test/sanity                   \
	  || ( exitCode=$? && ( mkdir -p `dirname C:/jprt/temp/P1/211057.jcoomes/bundles/windows_i586-fastdebug-c1-wbapitest.zip` && cd /cygdrive/c/jprt/temp/P1/211057.jcoomes/source/test/../build/-/testoutput && zip -q -r
  C:/jprt/temp/P1/211057.jcoomes/bundles/windows_i586-fastdebug-c1-wbapitest.zip . ) && exit ${exitCode} )
Error: Cannot find file: \cygdrive\c\jprt\temp\P1\211057.jcoomes\source\test\sanity

zip error: Nothing to do! (try: zip -q -r C:/jprt/temp/P1/211057.jcoomes/bundles/windows_i586-fastdebug-c1-wbapitest.zip . -i .)
make: *** [wbapitest] Error 12

Comments
Verified in JDK1.7.0_40 b28 HS24.0 b47 test sanity/WBApi.java
14-06-2013

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/0e9e3cecdc81
21-03-2012

EVALUATION The '/-/' that appears as a component in some path names is suspicious; e.g., /cygdrive/c/jprt/temp/P1/211057.jcoomes/source/test/../build/-/testoutput/JTwork It should be something like '/windows-i586/'. (Thanks to Kelly O'Hair and Alejandro Murillo for noticing this.) Presumably something in the makefile is not compatible with cygwin. Can reproduce by running 'jprt submit -n -release jdk8 -onlytargets ".*windows.*"' using a clone of hsx/hotspot-main/hotspot.
10-03-2012