mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-17 16:44:34 -04: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:
parent
98cd7b231f
commit
6de8fe1c62
8 changed files with 142 additions and 142 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue