Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8163787 | 8u121 | Srinivas Dama | P3 | Resolved | Fixed | b01 |
JDK-8158915 | 8u112 | Srinivas Dama | P3 | Resolved | Fixed | b01 |
JDK-8167954 | emb-8u121 | Srinivas Dama | P3 | Resolved | Fixed | b01 |
test/script/trusted/JDK-8087292.js intermittently fails.
<error type="java.lang.AssertionError" message="Failed executing test test/script/trusted/JDK-8087292.js">
<![CDATA[java.lang.AssertionError: Failed executing test test/script/trusted/JDK-8087292.js
at jdk.nashorn.internal.test.framework.ScriptRunnable.runTest(ScriptRunnable.java:77)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
at org.testng.TestNG.run(TestNG.java:1030)
at org.testng.TestNG.privateMain(TestNG.java:1337)
at org.testng.TestNG.main(TestNG.java:1306)
Caused by: java.lang.AssertionError: Test test/script/trusted/JDK-8087292.js failed at line 1 -
expected: 'RangeError: $EXEC returned non-zero exit code: 1'
found: 'Error: expected $EXIT code to be non-zero'
at org.testng.Assert.fail(Assert.java:89)
at jdk.nashorn.internal.test.framework.ScriptRunnable.fail(ScriptRunnable.java:100)
at jdk.nashorn.internal.test.framework.AbstractScriptRunnable.compare(AbstractScriptRunnable.java:263)
at jdk.nashorn.internal.test.framework.ScriptRunnable.compare(ScriptRunnable.java:244)
at jdk.nashorn.internal.test.framework.ScriptRunnable.executeInThisProcess(ScriptRunnable.java:163)
at jdk.nashorn.internal.test.framework.ScriptRunnable.execute(ScriptRunnable.java:86)
at jdk.nashorn.internal.test.framework.AbstractScriptRunnable.runTest(AbstractScriptRunnable.java:132)
at jdk.nashorn.internal.test.framework.ScriptRunnable.runTest(ScriptRunnable.java:75)
... 22 more
]]>
CAUSE:
Test calls system java launcher without arguments and waits for exit code 1.
But if system java do not contains fixJDK-6753938 (e.g. older then 7 b102) exit code may be 0 and test will fail.
SUGGESTED FIX:
Test should specify path to the java launcher (e.g. to java with which testing has been started).
<error type="java.lang.AssertionError" message="Failed executing test test/script/trusted/
<![CDATA[java.lang.AssertionError: Failed executing test test/script/trusted/
at jdk.nashorn.internal.test.framework.ScriptRunnable.runTest(ScriptRunnable.java:77)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:51)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:85)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
at org.testng.TestNG.run(TestNG.java:1030)
at org.testng.TestNG.privateMain(TestNG.java:1337)
at org.testng.TestNG.main(TestNG.java:1306)
Caused by: java.lang.AssertionError: Test test/script/trusted/
expected: 'RangeError: $EXEC returned non-zero exit code: 1'
found: 'Error: expected $EXIT code to be non-zero'
at org.testng.Assert.fail(Assert.java:89)
at jdk.nashorn.internal.test.framework.ScriptRunnable.fail(ScriptRunnable.java:100)
at jdk.nashorn.internal.test.framework.AbstractScriptRunnable.compare(AbstractScriptRunnable.java:263)
at jdk.nashorn.internal.test.framework.ScriptRunnable.compare(ScriptRunnable.java:244)
at jdk.nashorn.internal.test.framework.ScriptRunnable.executeInThisProcess(ScriptRunnable.java:163)
at jdk.nashorn.internal.test.framework.ScriptRunnable.execute(ScriptRunnable.java:86)
at jdk.nashorn.internal.test.framework.AbstractScriptRunnable.runTest(AbstractScriptRunnable.java:132)
at jdk.nashorn.internal.test.framework.ScriptRunnable.runTest(ScriptRunnable.java:75)
... 22 more
]]>
CAUSE:
Test calls system java launcher without arguments and waits for exit code 1.
But if system java do not contains fix
SUGGESTED FIX:
Test should specify path to the java launcher (e.g. to java with which testing has been started).
- backported by
-
JDK-8158915 [TEST_BUG] Test test/script/trusted/JDK-8087292.js intermittently fails.
- Resolved
-
JDK-8163787 [TEST_BUG] Test test/script/trusted/JDK-8087292.js intermittently fails.
- Resolved
-
JDK-8167954 [TEST_BUG] Test test/script/trusted/JDK-8087292.js intermittently fails.
- Resolved
- relates to
-
JDK-6753938 java launcher returns 0 exit code when Usage error detected
- Closed
-
JDK-8087292 nashorn should have a "fail-fast" option for scripting, analog to bash "set -e"
- Resolved