← Back to team overview

libreoffice team mailing list archive

First backport build, test failure

 

Hi,

I am still trying to learn LO backporting...

The build process of backport of 3.6.4 to Precise ends after a test failure:
---
Creating: toolkit.UnoScrollBarControl
LOG> Log started 13.11.2012 - 06:15:02
LOG> creating a textdocument
LOG> maximize the window size
No protocol specified
No protocol specified

No core dump at /media/Data/LibreOffice/libreoffice-3.6.4/workdir/
unxlngx6.pro/JunitTest/toolkit_unoapi/user, to create core dumps (and stack
traces)
for crashed soffice instances, enable core dumps with:

   ulimit -c unlimited

E
Time: 310.85
There was 1 failure:
1) test(org.openoffice.test.UnoApiTest)
java.lang.InternalError: Can't connect to X11 window server using ':0' as
the value of the DISPLAY variable.
        at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
        at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
        at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
        at java.security.AccessController.doPrivileged(Native Method)
        at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
        at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at java.awt.Toolkit$2.run(Toolkit.java:849)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
        at
mod._toolkit.UnoScrollBarControl.initialize(UnoScrollBarControl.java:78)
        at lib.TestCase.initializeTestCase(TestCase.java:79)
        at base.java_fat.executeTest(java_fat.java:179)
        at org.openoffice.Runner.run(Runner.java:240)
        at org.openoffice.test.UnoApiTest.test(UnoApiTest.java:45)

FAILURES!!!
Tests run: 1,  Failures: 1

see full error log at /media/Data/LibreOffice/libreoffice-3.6.4/workdir/
unxlngx6.pro/JunitTest/toolkit_unoapi/done.log
to rerun just this failed test without all others, run:

    make /media/Data/LibreOffice/libreoffice-3.6.4/workdir/
unxlngx6.pro/JunitTest/toolkit_unoapi/done

cd into the module dir to run the tests faster
Or to do interactive debugging, run two shells with (Linux only):

    make debugrun
    make gb_JunitTest_DEBUGRUN=T
/media/Data/LibreOffice/libreoffice-3.6.4/workdir/
unxlngx6.pro/JunitTest/toolkit_unoapi/done

make[5]: *** [/media/Data/LibreOffice/libreoffice-3.6.4/workdir/
unxlngx6.pro/JunitTest/toolkit_unoapi/done] Error 1
make[5]: Target `subsequentcheck' not remade because of errors.
make[5]: Leaving directory `/media/Data/LibreOffice/libreoffice-3.6.4'
make[4]: *** [subsequentcheck] Error 2
make[4]: Target `check' not remade because of errors.
make[4]: Leaving directory `/media/Data/LibreOffice/libreoffice-3.6.4'
make[3]: *** [check] Error 2
make[3]: Leaving directory `/media/Data/LibreOffice/libreoffice-3.6.4'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/media/Data/LibreOffice/libreoffice-3.6.4'
make[1]: *** [debian/stampdir/build-arch] Error 2
make[1]: Leaving directory `/media/Data/LibreOffice/libreoffice-3.6.4'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
---

And this the end of JunitTest/toolkit_unoapi/done.log:
---
Creating: toolkit.UnoScrollBarControl
LOG> Log started 13.11.2012 - 06:15:02
LOG> creating a textdocument
LOG> maximize the window size
No protocol specified
No protocol specified

No core dump at /media/Data/LibreOffice/libreoffice-3.6.4/workdir/
unxlngx6.pro/JunitTest/toolkit_unoapi/user, to create core dumps (and stack
traces)
for crashed soffice instances, enable core dumps with:

   ulimit -c unlimited

E
Time: 310.85
There was 1 failure:
1) test(org.openoffice.test.UnoApiTest)
java.lang.InternalError: Can't connect to X11 window server using ':0' as
the value of the DISPLAY variable.
    at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
    at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
    at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
    at java.security.AccessController.doPrivileged(Native Method)
    at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
    at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:112)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:186)
    at java.awt.Toolkit$2.run(Toolkit.java:849)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
    at
mod._toolkit.UnoScrollBarControl.initialize(UnoScrollBarControl.java:78)
    at lib.TestCase.initializeTestCase(TestCase.java:79)
    at base.java_fat.executeTest(java_fat.java:179)
    at org.openoffice.Runner.run(Runner.java:240)
    at org.openoffice.test.UnoApiTest.test(UnoApiTest.java:45)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at
org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.junit.runners.Suite.runChild(Suite.java:128)
    at org.junit.runners.Suite.runChild(Suite.java:24)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:117)
    at org.junit.runner.JUnitCore.runMain(JUnitCore.java:98)
    at org.junit.runner.JUnitCore.runMainAndExit(JUnitCore.java:53)
    at org.junit.runner.JUnitCore.main(JUnitCore.java:45)

FAILURES!!!
Tests run: 1,  Failures: 1
---

What should I do from here?

Thanks,
Boaz.

-- 
Boaz Dodin

Follow ups