mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Move only downwards in the filesystem hierarchy
This will pick up the local copies of the test data by default, without needing to create a subdirectory in the backend/tests path and executing the tests from there. The Current Working Directory can be set if this proves to be insufficient
This commit is contained in:
@ -79,7 +79,7 @@ static void test_print(int index, int generate, int debug) {
|
||||
int escaped_size = 1024;
|
||||
|
||||
if (generate) {
|
||||
strcpy(data_dir, "../data");
|
||||
strcpy(data_dir, "data");
|
||||
if (!testUtilExists(data_dir)) {
|
||||
ret = mkdir(data_dir, 0755);
|
||||
assert_zero(ret, "mkdir(%s) ret %d != 0\n", data_dir, ret);
|
||||
@ -95,7 +95,7 @@ static void test_print(int index, int generate, int debug) {
|
||||
#ifdef NO_PNG
|
||||
if (strcmp(exts[j], "png") == 0) continue;
|
||||
#endif
|
||||
strcpy(data_dir, "../data/print/");
|
||||
strcpy(data_dir, "data/print/");
|
||||
strcat(data_dir, exts[j]);
|
||||
|
||||
if (generate) {
|
||||
|
Reference in New Issue
Block a user