X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fapppm.t;h=e583db07a337e95d94e353d0db9fe0d433d380ea;hb=105dd7ae8057a6e4b9913dbf5e48ac3d61970656;hp=51b954fae9e2c82ae0c5ca5f4566328aa04a348c;hpb=5b52a12702382b93f81bd42075e5d00d49b289d9;p=sdlgit%2FSDL_perl.git diff --git a/t/apppm.t b/t/apppm.t index 51b954f..e583db0 100644 --- a/t/apppm.t +++ b/t/apppm.t @@ -3,13 +3,38 @@ # Copyright (C) 2003 Tels # Copyright (C) 2004 David J. Goehrig # +# ------------------------------------------------------------------------------ +# +# 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', '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); +