You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey Varlamov (JIRA)" <ji...@apache.org> on 2007/07/18 12:32:05 UTC
[jira] Resolved: (HARMONY-4084) [drlvm][build][ehwa] made timeout
customizable for automated ehwa test
[ https://issues.apache.org/jira/browse/HARMONY-4084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Varlamov resolved HARMONY-4084.
--------------------------------------
Resolution: Fixed
Fixed at revision: 557214
Just increased timeout to 60000 msecs, it should be more than enough to launch HWA.
> [drlvm][build][ehwa] made timeout customizable for automated ehwa test
> ----------------------------------------------------------------------
>
> Key: HARMONY-4084
> URL: https://issues.apache.org/jira/browse/HARMONY-4084
> Project: Harmony
> Issue Type: Improvement
> Components: DRLVM
> Reporter: Alexey Varlamov
> Assignee: Alexey Varlamov
> Priority: Trivial
>
> The automated EHWA test intermittently fails due to timeout, usually in interpreter or OPT on overloaded SMP machines:
> [java] timed out
> [java] junit.framework.AssertionFailedError: timed out
> [java] at HelloAuto.CreateAndRunTest.testHi(CreateAndRunTest.java:86)
> [java] at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java)
> [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:199)
> [java] at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:188)
> [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java)
> [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3143)
> [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
> [java] at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java)
> [java] at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
> [java] at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
> [java] at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> [java] at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
> [java] at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java)
> [java] at org.eclipse.test.UITestApplication.run(UITestApplication.java:58)
> [java] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java)
> [java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java)
> [java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
> [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java)
> [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
> [java] at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> [java] at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
> [java] at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
> [java] at org.eclipse.core.launcher.Main.run(Main.java)
> [java] at org.eclipse.core.launcher.Main.main(Main.java:952)
> [java] at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> [java] at org.apache.harmony.vm.JarRunner.main(JarRunner.java:80)
> [java] Java Result: 1
> The reason is that timeout for running generated HWA within Elcipse IDE is hardcoded in the test and is unreasonably small:
> working_vm/vm/tests/ehwa/ehwa.zip/plugins/HelloAuto_0.0.1/HelloAutosrc.zip/HelloAuto/CreateAndRunTest.java
> int timeout = 3000;
> while (timeout > 0) {
> try {
> assertEquals("Non-0 status code", 0, processes[0]
> .getExitValue());
> break;
> } catch (DebugException e) {
> timeout -= 100;
> try {
> Thread.sleep(100);
> } catch (InterruptedException ee) {
> }
> }
> }
> assertTrue("timed out", timeout > 0);
> The proposed solution is to make this timeout customizable and set bigger default value.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.