jdk/test/sun/net/www/protocol/jrt/other_resources.sh
changeset 40261 86a49ba76f52
parent 36511 9d0388c6b336
equal deleted inserted replaced
40260:4e69b50ccd97 40261:86a49ba76f52
    24 # @test
    24 # @test
    25 # @build OtherResources
    25 # @build OtherResources
    26 # @run shell other_resources.sh
    26 # @run shell other_resources.sh
    27 # @summary Access a jrt:/ resource in an observable module that is not in
    27 # @summary Access a jrt:/ resource in an observable module that is not in
    28 #  the boot layer and hence not known to the built-in class loaders. This
    28 #  the boot layer and hence not known to the built-in class loaders. This
    29 #  test is a shell test because the run tag doesn't support -limitmods.
    29 #  test is a shell test because the run tag doesn't support --limit-modules.
    30 
    30 
    31 set -e
    31 set -e
    32 
    32 
    33 if [ -z "$TESTJAVA" ]; then
    33 if [ -z "$TESTJAVA" ]; then
    34   if [ $# -lt 1 ]; then exit 1; fi
    34   if [ $# -lt 1 ]; then exit 1; fi
    37   TESTSRC="`pwd`"
    37   TESTSRC="`pwd`"
    38   TESTCLASSES="`pwd`"
    38   TESTCLASSES="`pwd`"
    39 fi
    39 fi
    40 
    40 
    41 JAVA="$TESTJAVA/bin/java ${TESTVMOPTS}"
    41 JAVA="$TESTJAVA/bin/java ${TESTVMOPTS}"
    42 $JAVA -limitmods java.base -cp $TESTCLASSES OtherResources
    42 $JAVA --limit-modules java.base -cp $TESTCLASSES OtherResources
    43 
    43 
    44 exit 0
    44 exit 0
    45 
    45