[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-dev] CDT test command line and cron
|
Hi,
Below is an email sent to "cdt-test-dev" mailing list. I am copying it here
to try to get more feedbacks, sorry for the duplicate.
--------------------------------------------------
I have been trying to run CDT regression tests from the command line on a
Linux machine using Eclipse 3.1 and CDT 3.0.0, and got some strange issue. I
have a shell script, which calls "java -cp <eclipse_home>/startup.jar ...".
If this script runs from a console/terminal under X-Windows, it works fine;
but if it runs from a cron job, following error message comes up after "java
-cp <eclipse_home>/startup.jar ...":
eclipse-test:
[echo] Running org.eclipse.cdt.ui.tests.AutomatedSuite
[java] !SESSION 2006-01-17 18:35:34.922
-----------------------------------------------
[java] eclipse.buildId=I20050627-1435
[java] java.version=1.4.2_09
[java] java.vendor=Sun Microsystems Inc.
[java] BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
[java] Framework arguments: -application
org.eclipse.test.uitestapplication
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,org.eclipse.cdt.ui.tests.AutomatedSuite.xml
-testPluginName org.eclipse.cdt.ui.tests -className
org.eclipse.cdt.ui.tests.AutomatedSuite
[java] Command-line arguments: -application
org.eclipse.test.uitestapplication -dev bin -data
<eclipse_home>/cdt_ui_folder
formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,org.eclipse.cdt.ui.tests.AutomatedSuite.xml
-testPluginName org.eclipse.cdt.ui.tests -className
org.eclipse.cdt.ui.tests.AutomatedSuite -os linux -ws gtk -arch x86
-consolelog
[java] !ENTRY org.eclipse.osgi 2006-01-17 18:35:37.802
[java] !MESSAGE Application error
[java] !STACK 1
[java] org.eclipse.swt.SWTError: No more handles [gtk_init_check()
failed]
[java] at org.eclipse.swt.SWT.error(SWT.java:2968)
[java] at
org.eclipse.swt.widgets.Display.createDisplay(Display.java:757)
...
...
I googled this error message, and found following bug report, which is very
similar to what I have seen:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=106396
The suggestion there is to set "JAVA_HIGH_ZIPFDS" to 500 or higher. So 500,
1000, and 1500 were tried, but none worked. I have also compared all the env
variables between cron environment and xterm environment, and made sure they
are the same, but still get the same error. One thing hasn't been tried is
to use a different Java virtual machine, will that help? Is there any
solution or workaround for this problem?
Thanks,
--alex
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/