projects
/
sdlgit/SDL_perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d03180b
)
Got random fails because we were not pumping events before polling
Kartik Thakore [Mon, 9 Nov 2009 11:20:20 +0000 (06:20 -0500)]
t/core_events.t
patch
|
blob
|
blame
|
history
diff --git
a/t/core_events.t
b/t/core_events.t
index
6a2138c
..
3754439
100644
(file)
--- a/
t/core_events.t
+++ b/
t/core_events.t
@@
-139,6
+139,8
@@
is($num_peep_events >= 0, 1, '[peep_events] Size of event queue is ' . $num_pee
SDL::Events::push_event($aevent); pass '[push_event] ran';
+SDL::Events::pump_events(); pass '[pump_event] ran';
+
SDL::Events::poll_event($event);
is( $event->type, $aevent->type, '[poll_event] Got the right event back out') ;