summaryrefslogtreecommitdiff
path: root/test/test_load_2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_load_2.cpp')
-rw-r--r--test/test_load_2.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_load_2.cpp b/test/test_load_2.cpp
index 59b10ac..8ae1f01 100644
--- a/test/test_load_2.cpp
+++ b/test/test_load_2.cpp
@@ -5,6 +5,7 @@
#include <zlib.h>
#include "config.h"
+#include "test_common.h"
int debug = 0;
@@ -13,9 +14,6 @@ int debug = 0;
#define EXPECT_OK(x) EXPECT_FALSE(x)
#define EXPECT_ERR(x) EXPECT_TRUE(x)
-#define TOPDIR SRC_DIR
-#define IMGDIR TOPDIR "/test/images"
-
typedef struct {
const char *name;
unsigned int crc;
@@ -71,7 +69,7 @@ TEST(LOAD2, load_1)
fn = tii[i].name;
if (*fn != '/')
{
- snprintf(buf, sizeof(buf), "%s/%s", IMGDIR, fn);
+ snprintf(buf, sizeof(buf), "%s/%s", IMG_SRC, fn);
fn = buf;
}
D("Load '%s'\n", fn);