One more gdTestAssert return value check
This commit is contained in:
parent
38a121e9c4
commit
35ce262dd4
@ -17,9 +17,12 @@ int main()
|
||||
gdImageDestroy(im);
|
||||
|
||||
im = gdImageCreateFromJpegPtr(size, data);
|
||||
gdTestAssert(gdImageResolutionX(im) == 72);
|
||||
gdTestAssert(gdImageResolutionY(im) == 300);
|
||||
gdFree(data);
|
||||
if (!gdTestAssert(gdImageResolutionX(im) == 72) || !gdTestAssert(gdImageResolutionY(im) == 300)) {
|
||||
gdTestErrorMsg("failed image resolution X (%d != 72) or Y (%d != 300)\n", gdImageResolutionX(im), gdImageResolutionY(im));
|
||||
gdImageDestroy(im);
|
||||
return 1;
|
||||
}
|
||||
gdImageDestroy(im);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user