From: Kartik Thakore Date: Sun, 30 Aug 2009 22:56:15 +0000 (-0400) Subject: moved skip test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d69de41798431967a439f343312a829b8965e053;p=sdlgit%2FSDL_perl.git moved skip test --- diff --git a/t/timerpm.t b/t/timerpm.t index b94b1ee..430c2f7 100644 --- a/t/timerpm.t +++ b/t/timerpm.t @@ -41,6 +41,11 @@ use SDL::Config; use Test::More; +if (SDL::Init(SDL_INIT_TIMER) < 0 ) +{ + plan( skip_all => "Cannot initialize timer!!" ); + +} plan ( tests => 4 ); use_ok( 'SDL::Timer' ); @@ -51,11 +56,6 @@ can_ok ('SDL::Timer', qw/ my $fired = 0; -if (SDL::Init(SDL_INIT_TIMER) < 0 ) -{ - plan( skip_all => "Cannot initialize timer!!" ); - -} my $timer = new SDL::Timer sub { $fired++ }, -delay => 30, -times => 1;