Debian Codegraph @

debian/patches/fix-runaway-test

raw
1 Description: Fix runaway test
2 Test case requires the creation of an event. This creation require the specification of an event type. Otherwise the event may not fire on some arch like ia64 or armhf. If the event does not fire, the test does not end.
3 Bug-Debian: #721405
4 Author: kthakore
5 Origin: upstream
6 --- a/t/sdlx_controller_interface.t
7 +++ b/t/sdlx_controller_interface.t
8 @@ -9,6 +9,7 @@
9 use lib 't/lib';
10 use SDL::TestTool;
11 use Data::Dumper;
12 +use SDL::Events;
13
14 my $videodriver = $ENV{SDL_VIDEODRIVER};
15 $ENV{SDL_VIDEODRIVER} = 'dummy';
16 @@ -79,6 +80,7 @@
17 require SDL::Event;
18 require SDL::Events;
19 my $eve = SDL::Event->new();
20 +$eve->type(SDL_USEREVENT);
21
22 SDL::Events::push_event($eve);
23 my $counts = [ 0, 0, 0 ];