United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7152791 wbapi tests fail on cygwin
JDK-7152791 : wbapi tests fail on cygwin

Details
Type:
Bug
Submit Date:
2012-03-10
Status:
Closed
Updated Date:
2013-06-14
Project Name:
JDK
Resolved Date:
2012-03-31
Component:
hotspot
OS:
windows
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs24 (b06)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

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
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.
                                     
2012-03-10
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/0e9e3cecdc81
                                     
2012-03-21
Verified in JDK1.7.0_40 b28 HS24.0 b47 test sanity/WBApi.java 
                                     
2013-06-14



Hardware and Software, Engineered to Work Together