summaryrefslogtreecommitdiff
path: root/test/test_load_2.cpp
diff options
context:
space:
mode:
authorKim Woelders <kim@woelders.dk>2022-01-17 15:47:57 +0100
committerKim Woelders <kim@woelders.dk>2022-01-18 20:40:59 +0100
commitda2ce0d94b8f05f1b7a62c846b8bef2c233e201c (patch)
treec1262c18792744dec2bd64273663c497c579912e /test/test_load_2.cpp
parent0d6211c50181d9470f0f586cb1ea31bba4a9190d (diff)
downloadimlib2-da2ce0d94b8f05f1b7a62c846b8bef2c233e201c.tar.gz
test: Move generated image files out of source dir
Simplifies cleaning up.
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);