From: Kartik Thakore Date: Fri, 16 Oct 2009 00:03:20 +0000 (-0400) Subject: t/core_surface is failing even when t/intergration1 is passing. Why? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90914471dfca94427ccf2ca13f1516493d2cfd21;p=sdlgit%2FSDL_perl.git t/core_surface is failing even when t/intergration1 is passing. Why? --- diff --git a/MANIFEST b/MANIFEST index eb36d5b..e61ce50 100644 --- a/MANIFEST +++ b/MANIFEST @@ -11,6 +11,7 @@ lib/SDL/Constants.pm lib/SDL/Cursor.pm lib/SDL/Event.pm lib/SDL/Font.pm +lib/SDL/Game.pm lib/SDL/Game/Rect.pm lib/SDL/Mixer.pm lib/SDL/MPEG.pm @@ -41,7 +42,7 @@ MacOSX/launcher.h MacOSX/launcher.m MacOSX/SDLPerl.icns make/lib/SDL/Utility.pm -MANIFEST +MANIFEST This list of files MANIFEST.bak MANIFEST.SKIP META.yml @@ -101,6 +102,7 @@ t/apppm.t t/cdrompm.t t/colorpm.t t/constantspm.t +t/core_surface.t t/cursorpm.t t/eventpm.t t/extendingrect.t diff --git a/src/Surface.xs b/src/Surface.xs index a9df9b4..3a3128a 100644 --- a/src/Surface.xs +++ b/src/Surface.xs @@ -144,6 +144,7 @@ IV surface_get_pixels(surface) SDL_Surface *surface CODE: + if (!surface->pixels) croak("Incomplete surface"); RETVAL = PTR2IV(surface->pixels); OUTPUT: RETVAL