changeset 9711:2bc592ef4e13

8047674: java/net/URLPermission/nstest/lookup.sh NoClassDefFoundError when run in concurrent mode Reviewed-by: alanb
author chegar
date Wed, 02 Jul 2014 18:12:59 +0100
parents 24b103a9e1a9
children 9d097b1143b5
files test/java/net/URLPermission/nstest/lookup.sh
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/net/URLPermission/nstest/lookup.sh	Tue Jul 01 20:42:29 2014 +0400
+++ b/test/java/net/URLPermission/nstest/lookup.sh	Wed Jul 02 18:12:59 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 {
@@ -57,4 +56,7 @@
 };
 POLICY
 
-${TESTJAVA}/bin/java -Djava.security.policy=file:./policy -Dsun.net.spi.nameservice.provider.1=simple,sun -cp ${TESTCLASSES}${PS}${TESTSRC} LookupTest -runtest ${port}
+${TESTJAVA}/bin/java ${TESTVMOPTS} \
+    -Djava.security.policy=file:./policy \
+    -Dsun.net.spi.nameservice.provider.1=simple,sun \
+    -cp ${TESTCLASSPATH}${PS}${TESTSRC} LookupTest -runtest ${port}