use test api
parent
1561a21a84
commit
0f3eb3125d
|
@ -90,7 +90,7 @@ do_test() {
|
|||
* skip them. Bug fixers should remove these from the list of
|
||||
* skipped items as bugs are fixed. */
|
||||
if (names[n].required < 0) {
|
||||
printf("Skipping test for '%s'. FIX THIS!\n", names[n].nm);
|
||||
gdTestErrorMsg("Skipping test for '%s'. FIX THIS!\n", names[n].nm);
|
||||
continue;
|
||||
}/* if */
|
||||
|
||||
|
@ -121,9 +121,6 @@ do_test() {
|
|||
gdTestAssertMsg(!!copy, "Failed to load %s\n", full_filename);
|
||||
if (!copy) continue;
|
||||
|
||||
/* Debug printf. */
|
||||
//printf("%s -> %d\n", full_filename, gdMaxPixelDiff(orig, copy));
|
||||
|
||||
gdTestAssertMsg(gdMaxPixelDiff(orig, copy) <= names[n].maxdiff,"Pixels different on %s\n", full_filename, full_filename);
|
||||
|
||||
if (!names[n].readonly) {
|
||||
|
|
|
@ -54,7 +54,7 @@ int main()
|
|||
gdTestImageDiff(src, dst, NULL, &result);
|
||||
if (result.pixels_changed > 0) {
|
||||
status = 1;
|
||||
printf("pixels changed: %d\n", result.pixels_changed);
|
||||
gdTestErrorMsg("pixels changed: %d\n", result.pixels_changed);
|
||||
}
|
||||
#endif
|
||||
gdImageDestroy(dst);
|
||||
|
|
Loading…
Reference in New Issue