[Bug 1967544] perl-SDL-2.548-11.fc35 skips all video tests with sdl12-compat-devel-0.0.1~git.20210602.cc5826a-1.fc35: Failed to init video

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1967544



--- Comment #3 from Petr Pisar <ppisar@xxxxxxxxxx> ---
It can be reduced to:

$ SDL_VIDEODRIVER=dummy perl -Iblib/{lib,arch} -e 'use SDL; $r =
SDL::init(0x00000020); $e = SDL::get_error(); print qq{retval = <$r>, error =
<$e>\n}'
INFO: sdl12-compat, built on Jun  9 2021 at 00:00:00, talking to SDL2 2.0.14
INFO: FIXME: there is never a parachute in SDL2, should we catch segfaults
ourselves? (SDL_Init:1622)
INFO: FIXME: support SDL_INIT_EVENTTHREAD where it makes sense?
(SDL_InitSubSystem:1594)
retval = <0>, error = <>

SDL::init() does not fail. But it prints a warning to an error output and that
is caught by the tests in t/lib/SDL/TestTool.pm:init():

    ($stdout, $stderr ) = capture { SDL::init($init) };
    if ( $stderr ne '' ) {
        warn 'Init ' . $inits{$init} . ' failed with SDL error: ' .
SDL::get_error() . "\nand stderr $stderr\n";
    }

    return !( $stderr ne '' );

In other words the tests check that there is not error output, but sdl12-compat
logs there unimplemented features.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite Information]

  Powered by Linux