Skip Menu |

This queue is for tickets about the X11-XCB CPAN distribution.

Report information
The Basics
Id: 104398
Status: resolved
Priority: 0/
Queue: X11-XCB

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

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



Subject: Could not get reply for: xcb_xinerama_query_screens_reply in 02-screens.t and 04-window.t

I am in the process of packaging this dist for downstream, so if I've neglected some dependencies
that I didn't spot in the config please let me know ( the comment containing references to python is incredibly weird btw and I can't find any evidence of python being used in the source )

Running the test suite using an Xvfb for a DISPLAY makes the tests fail as follows:

 

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
make --jobs=4 --load-average=1.0 -j1 test TEST_VERBOSE=0
t/01-atom.t ..... ok   
# Testing X11::XCB, Perl 5.020002, /usr/bin/perl
t/02-screens.t .. Dubious, test returned 11 (wstat 2816, 0xb00)
Failed 4/6 subtests
Could not get reply for: xcb_xinerama_query_screens_reply at /tmp/portage/dev-perl-X11-XCB-0.120.0/work/X11-XCB-0.12/blib/lib/X11/XCB/Connection.pm line 97.
# Looks like you planned 6 tests but ran 2.
# Looks like your test exited with 11 just after 2.
t/03-color.t .... ok   
# Testing X11::XCB, Perl 5.020002, /usr/bin/perl
t/04-window.t ... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 2/4 subtests
t/X11-XCB.t ..... 1/1 Could not get reply for: xcb_xinerama_query_screens_reply at /tmp/portage/dev-perl-X11-XCB-0.120.0/work/X11-XCB-0.12/blib/lib/X11/XCB/Connection.p
m line 97.
# Looks like you planned 4 tests but ran 2.
# Looks like your test exited with 255 just after 2.
t/X11-XCB.t ..... ok   

Test Summary Report
-------------------
t/02-screens.t (Wstat: 2816 Tests: 2 Failed: 0)
  Non-zero exit status: 11
  Parse errors: Bad plan.  You planned 6 tests but ran 2.
t/04-window.t (Wstat: 65280 Tests: 2 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 4 tests but ran 2.
Files=5, Tests=18,  1 wallclock secs ( 0.07 usr  0.01 sys +  0.64 cusr  0.08 csys =  0.80 CPU)
 

My first guess would be that Xvfb doesn’t support Xinerama. Patches to make the code fall back to using the X root window size when Xinerama is not available are welcome.
This appears to be fixed somewhere before 0.16, but not easy to tell.

Passes tests under Xvfb either way.
-- 
- CPAN kentnl@cpan.org
- Gentoo Perl Maintainer kentnl@gentoo.org ( perl@gentoo.org )