test/jdk/sun/tools/jrunscript/jrunscript-fTest.sh
changeset 50878 fb7800b66c92
parent 47216 71c04702a3d5
equal deleted inserted replaced
50877:700fffd3c871 50878:fb7800b66c92
    41 
    41 
    42 # -f option used with JavaScript as language chosen explicitly
    42 # -f option used with JavaScript as language chosen explicitly
    43 # with -l option
    43 # with -l option
    44 
    44 
    45 rm -f jrunscript-fTest.out 2>/dev/null
    45 rm -f jrunscript-fTest.out 2>/dev/null
    46 ${JRUNSCRIPT} -J-Djava.awt.headless=true -l nashorn -f ${TESTSRC}/hello.js > jrunscript-fTest.out 2>&1
    46 ${JRUNSCRIPT} -J-Dnashorn.args.prepend=--no-deprecation-warning -J-Djava.awt.headless=true -l nashorn -f ${TESTSRC}/hello.js > jrunscript-fTest.out 2>&1
    47 
    47 
    48 $golden_diff jrunscript-fTest.out ${TESTSRC}/dash-f.out
    48 $golden_diff jrunscript-fTest.out ${TESTSRC}/dash-f.out
    49 if [ $? != 0 ]
    49 if [ $? != 0 ]
    50 then
    50 then
    51   echo "Output of jrunscript -f differ from expected output. Failed."
    51   echo "Output of jrunscript -f differ from expected output. Failed."