X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fapppm.t;h=e583db07a337e95d94e353d0db9fe0d433d380ea;hb=b3cdeb39a431b026168c4060bf74001fcee07493;hp=19d9f129c34976e845b7be9c061d9e484c6e4a0f;hpb=d9dfc03449da15be32cce04f6b5b86554294afa9;p=sdlgit%2FSDL_perl.git diff --git a/t/apppm.t b/t/apppm.t index 19d9f12..e583db0 100644 --- a/t/apppm.t +++ b/t/apppm.t @@ -2,14 +2,39 @@ # # Copyright (C) 2003 Tels # Copyright (C) 2004 David J. Goehrig -# Copyright (C) 2009 Kartik Thakore +# +# ------------------------------------------------------------------------------ +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +# +# ------------------------------------------------------------------------------ +# +# Please feel free to send questions, suggestions or improvements to: +# +# David J. Goehrig +# dgoehrig\@cpan.org +# +# # basic testing of SDL::App BEGIN { - unshift @INC, 'blib/lib','blib/arch', 'blib/arch/auto/src', 'blib/arch/auto/src/SDL/SFont'; + unshift @INC, 'blib/lib','blib/arch'; } use strict; +use SDL; use SDL::Config; use Test::More; @@ -32,3 +57,9 @@ can_ok ('SDL::App', qw/ loop sync attribute /); + +my $app = SDL::App->new(-title => "Test", -width => 640, -height => 480, -init => SDL_INIT_VIDEO); + + $app->sync; + sleep(1); +