Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-test-dev] CDT test from command line and cron

Hi,

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 I run this script manually from a console/terminal under X-Windows, it works fine; but if I set up a cron job to start this script, I got following error message 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 searched 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. I tried 500, 1000, and 1500, 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 I haven't tried is to use a different Java virtual machine, will that help? Is there any solution or workaround for this problem?

Thanks,
--alex

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



Back to the top