use test api

master
Pierre Joye 2016-07-17 16:57:50 +07:00
parent 1561a21a84
commit 0f3eb3125d
2 changed files with 2 additions and 5 deletions

View File

@ -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) {

View File

@ -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);