Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

pbuilder + DISPLAY (junit)

11 views
Skip to first unread message

Mathieu Malaterre

unread,
Nov 3, 2012, 9:40:02 AM11/3/12
to
Hi,

Has anyone dealt with such issues before ? I cannot run the test
suite from pdebuild, it fails because of [1]. I could not find
anything in the man page of pdebuild

Thanks.

[1].
[junit] Testcase:
draw(org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase): Caused an
ERROR
[junit] Can't connect to X11 window server using ':1.0' as the
value of the DISPLAY variable.
[junit] java.lang.InternalError: Can't connect to X11 window
server using ':1.0' as the value of the DISPLAY variable.
[junit] at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
[junit] at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
[junit] at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
[junit] at java.lang.Class.forName0(Native Method)
[junit] at java.lang.Class.forName(Class.java:186)
[junit] at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
[junit] at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
[junit] at
org.apache.xmlgraphics.java2d.ps.PSGraphics2D.<init>(PSGraphics2D.java:837)
[junit] at
org.apache.xmlgraphics.java2d.ps.PSGraphics2D.<init>(PSGraphics2D.java:110)
[junit] at
org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase.createGraphics2D(PSGraphics2DTestCase.java:54)
[junit] at
org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase.setup(PSGraphics2DTestCase.java:48)
[junit]
[junit]
[junit] Test org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase FAILED
[junit] Testsuite: org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase
[junit] No protocol specified
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.048 sec
[junit]
[junit] Testcase:
testRGBAndBGRImages(org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase): Caused
an ERROR
[junit] Can't connect to X11 window server using ':1.0' as the
value of the DISPLAY variable.
[junit] java.lang.InternalError: Can't connect to X11 window
server using ':1.0' as the value of the DISPLAY variable.
[junit] at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
[junit] at
sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:62)
[junit] at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:178)
[junit] at java.security.AccessController.doPrivileged(Native Method)
[junit] at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
[junit] at java.lang.Class.forName0(Native Method)
[junit] at java.lang.Class.forName(Class.java:186)
[junit] at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
[junit] at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1152)
[junit] at
org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase.prepareImage(ImageEncodingHelperTestCase.java:36)
[junit] at
org.apache.xmlgraphics.ps.ImageEncodingHelperTestCase.testRGBAndBGRImages(ImageEncodingHelperTestCase.java:62)
[junit]


--
To UNSUBSCRIBE, email to debian-ja...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CA+7wUsyu-KeirpA8F2nKNaOT...@mail.gmail.com

Guillaume Mazoyer

unread,
Nov 3, 2012, 9:40:02 AM11/3/12
to
Hi Mathieu,

We had to deal with such a problem for the java-gnome package.
To solve that problem we used the xvfb to run the test related to the
graphical user interface (and even take screenshots for the javadoc
generation).

2012/11/3 Mathieu Malaterre <ma...@debian.org>:
> Has anyone dealt with such issues before ? I cannot run the test
> suite from pdebuild, it fails because of [1]. I could not find
> anything in the man page of pdebuild
We had to deal with such a problem for the java-gnome package.
To solve that problem we used the xvfb to run the test related to the
graphical user interface (and even take screenshots for the javadoc
generation).

Hope this can help you too.

--
Guillaume Mazoyer - http://respawner.fr/


--
To UNSUBSCRIBE, email to debian-ja...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/CAKWSjpgOCuL5mFP5D3yuFTX5...@mail.gmail.com

gregor herrmann

unread,
Nov 3, 2012, 10:20:02 AM11/3/12
to
On Sat, 03 Nov 2012 14:30:35 +0100, Mathieu Malaterre wrote:

> Has anyone dealt with such issues before ? I cannot run the test
> suite from pdebuild, it fails because of [1]. I could not find
> anything in the man page of pdebuild
>
> Thanks.
>
> [1].
> [junit] Testcase:
> draw(org.apache.xmlgraphics.java2d.ps.PSGraphics2DTestCase): Caused an
> ERROR
> [junit] Can't connect to X11 window server using ':1.0' as the
> value of the DISPLAY variable.
> [junit] java.lang.InternalError: Can't connect to X11 window
> server using ':1.0' as the value of the DISPLAY variable.


Does running it under xvfb help?

Cf. my patch for basf in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690152#20

Cheers,
gregor


--
.''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
: :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
`- NP: Kurt Ostbahn & Kombo: 57 Engeln
signature.asc
0 new messages