JDK-7051961 : TEST_BUG: Some JDK 6 javah/javap jtreg tests are not cygwin aware
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javah
  • Affected Version: 6u27
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2011-06-06
  • Updated: 2018-01-09
  • Resolved: 2018-01-09
Related Reports
Relates :  
Description
The tests that fail are:

test/tools/javah/6257087/foo.sh
test/tools/javah/ConstMacroTest.sh
test/tools/javah/MissingParamClassTest.sh
test/tools/javah/ReadOldClass.sh

And also a javap test:
test/tools/javap/pathsep.sh

The same failure mode occured in several test/tools/javac tests - See 6869804 which has been fixed.

Comments
javah has gone away; there are no shell tests for javap
09-01-2018

EVALUATION cygwin requires some different settings than does mks. These tests do not notice that they are running under cygwin and just use the mks settings which causes them to fail.
06-06-2011

SUGGESTED FIX Here is an example of the suggested fix: diff -r c0ae524182a6 test/tools/javac/NonStaticFieldExpr1.sh --- a/test/tools/javac/NonStaticFieldExpr1.sh Tue Jun 01 11:36:37 2010 -0700 +++ b/test/tools/javac/NonStaticFieldExpr1.sh Mon Jun 06 10:47:15 2011 -0700 @@ -28,6 +28,12 @@ PS=":" FS="/" ;; + CYGWIN* ) + NULL=NUL + PS=";" + FS="/" + DIFFOPTS="--strip-trailing-cr" + ;; Windows* ) NULL=NUL PS=";" @@ -45,7 +51,7 @@ ${TESTJAVA}${FS}bin${FS}javac NonStaticFieldExpr1.java 2> ${TMP1} cat ${TMP1} -diff -c ${TESTSRC}${FS}NonStaticFieldExpr1.out ${TMP1} +diff ${DIFFOPTS} -c ${TESTSRC}${FS}NonStaticFieldExpr1.out ${TMP1} result=$? rm ${TMP1}
06-06-2011