8047674: java/net/URLPermission/nstest/lookup.sh NoClassDefFoundError when run in concurrent mode
authorchegar
Tue, 24 Jun 2014 10:25:56 +0100
changeset 25161 c85a08c0b9d9
parent 25160 6f841ed9f1ec
child 25162 c388078278d4
8047674: java/net/URLPermission/nstest/lookup.sh NoClassDefFoundError when run in concurrent mode Reviewed-by: alanb
jdk/test/java/net/URLPermission/nstest/lookup.sh
--- a/jdk/test/java/net/URLPermission/nstest/lookup.sh	Tue Jun 24 11:09:57 2014 +0200
+++ b/jdk/test/java/net/URLPermission/nstest/lookup.sh	Tue Jun 24 10:25:56 2014 +0100
@@ -24,9 +24,9 @@
 
 # @test
 # @library /lib/testlibrary
+# @build jdk.testlibrary.*
 # @compile -XDignore.symbol.file=true SimpleNameService.java
 #            LookupTest.java SimpleNameServiceDescriptor.java
-# @build jdk.testlibrary.*
 # @run shell/timeout=50 lookup.sh
 #
 
@@ -42,8 +42,7 @@
     ;;
 esac
 
-
-port=`${TESTJAVA}/bin/java -cp ${TESTCLASSES} LookupTest -getport`
+port=`${TESTJAVA}/bin/java -cp ${TESTCLASSPATH} LookupTest -getport`
 
 cat << POLICY > policy
 grant {
@@ -60,4 +59,4 @@
 ${TESTJAVA}/bin/java ${TESTVMOPTS} \
     -Djava.security.policy=file:./policy \
     -Dsun.net.spi.nameservice.provider.1=simple,sun \
-    -cp ${TESTCLASSES}${PS}${TESTSRC} LookupTest -runtest ${port}
+    -cp ${TESTCLASSPATH}${PS}${TESTSRC} LookupTest -runtest ${port}