[wxp]: make -C make test fails on windows

Francis ANDRE francis.andre.kampbell at orange.fr
Sat Dec 7 00:32:57 PST 2013


Hi Jon

The jtreg tests are failing on windows because there is yet a cygwin path in one 
classpath. See below the full execution log where you will found this line

         -cp 
"../../../testClasses;/cygdrive/Z/JDK/jtreg/build/images/jtreg/lib/jtreg.jar" \

Francis



FrancisANDRE at idefix /cygdrive/Z/JDK/jtreg
$ make -C make test
make: Entering directory `/cygdrive/Z/JDK/jtreg/make'
CLASSPATH="../build/classes;../src/share/classes;Z:/JDK/jtharness/lib/javatest.jar;Z:/JDK/javahelp/2.0/javahelp/lib/jh.jar" 
\
     C:/Progra~1/Java/jdk1.6.0_35/bin/java 
-Djavatest.i18n.log=com.sun.javatest.regtest \
          \
         com.sun.javatest.regtest.Main -help all \
         > ../build/i18n.com.sun.javatest.regtest.log 2>&1
/bin/grep help.jcov 
../src/share/classes/com/sun/javatest/regtest/i18n.properties | /bin/sed -e 
's/\(.*\)=.*/i18n: \1/' >> ../build/
i18n.com.sun.javatest.regtest.log
/bin/sh checkI18NProps.sh ../src/share/classes/com/sun/javatest/regtest 
../build/i18n.com.sun.javatest.regtest.log
echo ../build/i18n.com.sun.javatest.regtest.ok passed at `date` > 
../build/i18n.com.sun.javatest.regtest.ok
/bin/rm -rf ../build/Basic.check/work ../build/Basic.check/report
/bin/mkdir -p ../build/Basic.check/work/scratch ../build/Basic.check/report
C:/Progra~1/Java/jdk1.6.0_35/bin/java \
         -Djavatest.regtest.allowTrailingBuild=true \
         -jar ../build/images/jtreg/lib/jtreg.jar \
         -w ../build/Basic.check/work \
         -r ../build/Basic.check/report \
         -c -v1 \
         ../src/share/test/javatest/regtest/data/basic \
         > ../build/Basic.check/log 2>&1|| \
     true "non-zero exit code from JavaTest intentionally ignored"
/bin/grep -s 'Test results: passed: 146; error: 74' ../build/Basic.check/log  > 
/dev/null
echo ../build/Basic.check.ok passed at `date` > ../build/Basic.check.ok
/bin/rm -rf ../build/Basic.othervm/work ../build/Basic.othervm/report
/bin/mkdir -p ../build/Basic.othervm/work/scratch ../build/Basic.othervm/report
CLASSPATH="../build/classes;../src/share/classes;Z:/JDK/jtharness/lib/javatest.jar" 
\
         C:/Progra~1/Java/jdk1.6.0_35/bin/javac -encoding ISO8859-1 -d 
../build/testClasses ../src/share/test/javatest/regtest/Basic.
java
DISPLAY=`sh display.sh` export DISPLAY ; \
trap "sh `pwd`/display.sh -kill" 0 ; \
cd ../build/Basic.othervm/work/scratch ; \
     C:/Progra~1/Java/jdk1.6.0_35/bin/java \
         -cp 
"../../../testClasses;/cygdrive/Z/JDK/jtreg/build/images/jtreg/lib/jtreg.jar" \
         -Ddebug.com.sun.javatest.TestResultTable=true \
         -Ddebug.com.sun.javatest.TRT.TreeIterator=true \
         -Ddebug.com.sun.javatest.TestRunner=true \
         -Djavatest.regtest.allowTrailingBuild=true \
         -Djavatest.regtest.showCmd=true \
         -Djavatest.regtest.debugChild=true \
         -Djavatest.regtest.debugOptions=true \
         Basic \
             Z:/JDK/jtreg/src/share/test/javatest/regtest/data/basic \
             ../../report \
             ../../work \
             C:/Progra~1/Java/jdk1.6.0_35 \
             "DISPLAY=${DISPLAY:-`uname -n`:0.0}" \
             -othervm \
         > ../../log 2>&1 \
     || (cat ../../log ; exit 1)
java.lang.NoClassDefFoundError: com/sun/javatest/Harness$Fault
Caused by: java.lang.ClassNotFoundException: com.sun.javatest.Harness$Fault
         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: Basic.  Program will exit.
Exception in thread "main" make: *** [../build/Basic.othervm.ok] Error 1
make: Leaving directory `/cygdrive/Z/JDK/jtreg/make'



More information about the jtreg-use mailing list