Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 296425

Summary: JUnit tests are broken in CDT weekly build
Product: [Tools] CDT Reporter: Andrew Gvozdev <angvoz.dev>
Component: cdt-relengAssignee: Vivian Kong <vivkong>
Status: RESOLVED FIXED QA Contact: Vivian Kong <vivkong>
Severity: normal    
Priority: P3 CC: vivkong
Version: 6.1   
Target Milestone: 6.0.2   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 295394    
Bug Blocks:    
Attachments:
Description Flags
test.xml with workaround none

Description Andrew Gvozdev CLA 2009-11-29 20:01:56 EST
There is a problem with XULrunner:
java-test:
[echo] Running org.eclipse.cdt.core.suite.AutomatedIntegrationSuite. Result file: /opt/public/download-staging.priv/tools/cdt/releng/org.eclipse.cdt/all/org.eclipse.cdt.releng/results/I.I200911200607/testReports/org.eclipse.cdt.core.suite.AutomatedIntegrationSuite.xml.
[java] /opt/ibm/ibm-java2-ppc-50/jre/bin/java: symbol lookup error: /usr/lib/xulrunner-1.9.1.4/libxul.so: undefined symbol: gdk_screen_get_resolution
[java] Java Result: 127
Comment 1 Andrew Gvozdev CLA 2009-11-29 20:06:49 EST
There is a workaround mentioned in bug 295394#16:
> Add following line to their releng/testing.properties to explicitly choose working XULRunner over system default:
> extraVMargs=-Dorg.eclipse.swt.browser.XULRunnerPath=/shared/common/mozilla-xulrunner181-1.8.1.4-30.ppc

Vivian, would that workaround be an appropriate way to fix the problem?
Comment 2 Vivian Kong CLA 2009-11-30 09:55:01 EST
I'll take a look
Comment 3 Vivian Kong CLA 2009-11-30 14:11:46 EST
Created attachment 153376 [details]
test.xml with workaround

I've fixed it in cdt_6_0 and HEAD.  Kicked off a build for HEAD but there were a bunch of compile errors so the JUnit tests didn't get run (see http://download.eclipse.org/tools/cdt/builds/6.1.0/error_build.log).  A build on the cdt_6_0 branch is running and it looks like the JUnit tests are running now with the workaround.
Comment 4 Vivian Kong CLA 2009-11-30 14:18:53 EST
Fixed in cdt_5_0 as well
Comment 5 Vivian Kong CLA 2009-12-01 10:23:58 EST
marking it as fixed
Comment 6 Andrew Gvozdev CLA 2009-12-01 10:49:12 EST
Thanks Vivian. I hope it'll work next weekly 6.1 build.