#undef update
}
-int run_test_buf(const char *filename, char *harness, namelist_t *ip,
+int run_test_buf(const char *filename, const char *harness, namelist_t *ip,
char *buf, size_t buf_len, const char* error_type,
int eval_flags, BOOL is_negative, BOOL is_async,
BOOL can_block)
if (p) {
snprintf(harnessbuf, sizeof(harnessbuf), "%.*s%s",
(int)(p - filename), filename, "harness");
+ } else {
+ pstrcpy(harnessbuf, sizeof(harnessbuf), "");
}
harness = harnessbuf;
}
if (p) {
snprintf(harnessbuf, sizeof(harnessbuf), "%.*s%s",
(int)(p - filename), filename, "test/harness");
+ } else {
+ pstrcpy(harnessbuf, sizeof(harnessbuf), "");
}
harness = harnessbuf;
}