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:
Schaich 2021-03-22 21:15:00 +09:00
parent 98cd7b231f
commit 6de8fe1c62
8 changed files with 142 additions and 142 deletions

View file

@ -41,8 +41,8 @@ static void test_csv(int index, int debug) {
testStart("");
FILE *fd = fopen("../data/imail/usps/uspsIMbEncoderTestCases.csv", "r");
assert_nonnull(fd, "open ../data/imail/usps/uspsIMbEncoderTestCases.csv");
FILE *fd = fopen("data/imail/usps/uspsIMbEncoderTestCases.csv", "r");
assert_nonnull(fd, "open data/imail/usps/uspsIMbEncoderTestCases.csv");
char buffer[1024];
char id[10];