jdk/test/java/util/Formatter/Basic.sh
changeset 36511 9d0388c6b336
parent 23010 6dadb192ad81
child 40261 86a49ba76f52
equal deleted inserted replaced
36510:043f1af70518 36511:9d0388c6b336
    21 # questions.
    21 # questions.
    22 #
    22 #
    23 
    23 
    24 #
    24 #
    25 
    25 
    26 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -cp ${TESTSRC} -d . \
    26 EXTRAOPTS="-XaddExports:java.base/jdk.internal.math=ALL-UNNAMED"
       
    27 ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} ${EXTRAOPTS} -cp ${TESTSRC} -d . \
    27     ${TESTSRC}/Basic.java
    28     ${TESTSRC}/Basic.java
    28 
    29 
    29 expectPass() {
    30 expectPass() {
    30   if [ $1 -eq 0 ]
    31   if [ $1 -eq 0 ]
    31   then echo "--- passed as expected"
    32   then echo "--- passed as expected"
    37 
    38 
    38 runTest() {
    39 runTest() {
    39   echo "Testing:" ${1}
    40   echo "Testing:" ${1}
    40   TZ="${1}"; export TZ
    41   TZ="${1}"; export TZ
    41   echo "  " $TZ
    42   echo "  " $TZ
    42   ${TESTJAVA}/bin/java ${TESTVMOPTS} Basic
    43   ${TESTJAVA}/bin/java ${TESTVMOPTS} ${EXTRAOPTS} Basic
    43   expectPass $?
    44   expectPass $?
    44 }
    45 }
    45 
    46 
    46 runTest US/Pacific
    47 runTest US/Pacific
    47 runTest Asia/Novosibirsk
    48 runTest Asia/Novosibirsk