Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 93157
Status: open
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: ether [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: in tests: X11 control stolen
With X11 running in the background, and installing this distribution with 'cpanm', X control was stolen and numerous small windows were drawn and removed. It looked like I'd been hacked! This is not appropriate for a non-interactive installation test.
On 2014-02-18 22:58:53, ETHER wrote: Show quoted text
> With X11 running in the background, and installing this distribution > with 'cpanm', X control was stolen and numerous small windows were > drawn and removed. It looked like I'd been hacked! > > This is not appropriate for a non-interactive installation test.
This is normal behavior since decades, and also other CPAN modules implementing GUI toolkits are doing this. If you don't like this, then you have some possibilities: * set the DISPLAY environment variable to something invalid or unset it (but some CPAN modules are in need of a display and their tets may fail if there isn't one --- at least Tk does not fail if there's no DISPLAY) * use a 2nd X11 server for tests * use Xnest * use Xvfb * use a vncserver (my favorite, as you can run tests complete invisible, but hook into the display in case of problems) * invent a new environment variable for skipping GUI tests and get this check into all relevant CPAN modules (Tk, Gtk2, Wx, Prima, X11::Protocol, various Tk::* modules ...) Regards, Slaven