< prev index next >
test/jdk/sun/tools/jrunscript/jrunscriptTest.sh
Print this page
*** 38,48 ****
echo "No js engine found and engine not required; test vacuously passes."
exit 0
fi
rm -f jrunscriptTest.out 2>/dev/null
! ${JRUNSCRIPT} -J-Djava.awt.headless=true -l nashorn > jrunscriptTest.out 2>&1 <<EOF
v = 2 + 5;
v *= 5; v.doubleValue();
v = v + " is the value";
if (v != 0) { println('yes v != 0'); }
java.lang.System.out.println('hello world from script');
--- 38,48 ----
echo "No js engine found and engine not required; test vacuously passes."
exit 0
fi
rm -f jrunscriptTest.out 2>/dev/null
! ${JRUNSCRIPT} -J-Dnashorn.args.prepend=--no-deprecation-warning -J-Djava.awt.headless=true -l nashorn > jrunscriptTest.out 2>&1 <<EOF
v = 2 + 5;
v *= 5; v.doubleValue();
v = v + " is the value";
if (v != 0) { println('yes v != 0'); }
java.lang.System.out.println('hello world from script');
< prev index next >