summaryrefslogtreecommitdiff
path: root/tests/png/bug00011.c
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-04-22 17:16:44 +0200
committerOndřej Surý <ondrej@sury.org>2013-04-22 17:16:44 +0200
commit83f5b748c3c14d6d0df879bccf340620982ca515 (patch)
tree664f97259f2542459fc11e1b88b9a49e8a6089f8 /tests/png/bug00011.c
parentf3375cbc332df6de91128d6590e6caea52966489 (diff)
downloadlibgd-83f5b748c3c14d6d0df879bccf340620982ca515.tar.gz
Make tests less chatty; silence them using our shiny new gdSetErrorMethod
Diffstat (limited to 'tests/png/bug00011.c')
-rw-r--r--tests/png/bug00011.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/png/bug00011.c b/tests/png/bug00011.c
index 62bd568..865c87e 100644
--- a/tests/png/bug00011.c
+++ b/tests/png/bug00011.c
@@ -11,10 +11,9 @@ int main()
char path[2048];
sprintf(path, "%s/png/emptyfile", GDTEST_TOP_DIR);
- printf("opening %s\n", path);
fp = fopen(path, "rb");
if (!fp) {
- printf("failed, cannot open file\n");
+ fprintf(stderr, "failed, cannot open file: %s\n", path);
return 1;
}
im = gdImageCreateFromPng(fp);