diff options
Diffstat (limited to 'tests/gdimagecolortransparent/gdimagecolortransparent.c')
-rw-r--r-- | tests/gdimagecolortransparent/gdimagecolortransparent.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/gdimagecolortransparent/gdimagecolortransparent.c b/tests/gdimagecolortransparent/gdimagecolortransparent.c index aca380b..7d6e234 100644 --- a/tests/gdimagecolortransparent/gdimagecolortransparent.c +++ b/tests/gdimagecolortransparent/gdimagecolortransparent.c @@ -15,6 +15,7 @@ int main() if(im->transparent == pos) { error = -1; + goto exit; } pos = -2; @@ -22,7 +23,14 @@ int main() gdImageColorTransparent(im, pos); if(im->transparent == pos) { - error = -1; + error = -2; + goto exit; + } + + pos = -1; + gdImageColorTransparent(im, pos); + if(im->transparent == pos) { + error = -3; } gdImageDestroy(im); |