summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c')
-rw-r--r--Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c b/Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c
index b26d0394a41..b0462fc42d7 100644
--- a/Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c
+++ b/Build/source/libs/gd/libgd-src/tests/gdtest/gdtest.c
@@ -27,7 +27,6 @@
#include "gd.h"
#include "gdtest.h"
-#include "test_config.h"
/* max is already defined in windows/msvc */
#ifndef max
@@ -47,7 +46,7 @@ gdImagePtr gdTestImageFromPng(const char *filename)
FILE *fp;
/* If the path is relative, then assume it's in the tests/ dir. */
- if (filename[0] == '/'
+ if (filename[0] == '/' || filename[0] == '.'
#ifdef _WIN32
|| filename[1] == ':'
#endif
@@ -590,7 +589,7 @@ int gdTestImageCompareToFile(const char* file, unsigned int line, const char* me
expected = gdTestImageFromPng(expected_file);
if (!expected) {
- _gdTestErrorMsg(file, line, "Cannot open PNG <%s>", expected_file);
+ _gdTestErrorMsg(file, line, "Cannot open PNG <%s>\n", expected_file);
res = 0;
} else {
res = gdTestImageCompareToImage(file, line, message, expected, actual);