X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=test.c;h=6d8e9ad7192bf08ff2e583c5b3be9c343d57e37b;hb=2b10d588e4f8456ae00afefc11ac87c0677d7ce1;hp=29f4b1100fb1ea0df4b0bbea4f2eaef206207460;hpb=05e20bcddaa5cb67b4d2a91323a5dfc17e99a416;p=xonotic%2Fgmqcc.git diff --git a/test.c b/test.c index 29f4b11..6d8e9ad 100644 --- a/test.c +++ b/test.c @@ -85,7 +85,7 @@ static fs_file_t **task_popen(const char *command, const char *mode) { while (*line != '\0' && *line != ' ' && *line != '\t' && *line != '\n') line++; } - vec_push(argv, '\0'); + vec_push(argv, (char *)0); } @@ -806,19 +806,21 @@ static bool task_propagate(const char *curdir, size_t *pad, const char *defs) { } else { /* Preprocessing (qcflags mean shit all here we don't allow them) */ if (tmpl->testflags && !strcmp(tmpl->testflags, "-no-defs")) { - util_snprintf(buf, sizeof(buf), "%s -E %s/%s -o %s", + util_snprintf(buf, sizeof(buf), "%s -E %s/%s %s -o %s", task_bins[TASK_COMPILE], directories[i], tmpl->sourcefile, + tmpl->compileflags, tmpl->tempfilename ); } else { - util_snprintf(buf, sizeof(buf), "%s -E %s/%s %s/%s -o %s", + util_snprintf(buf, sizeof(buf), "%s -E %s/%s %s/%s %s -o %s", task_bins[TASK_COMPILE], curdir, defs, directories[i], tmpl->sourcefile, + tmpl->compileflags, tmpl->tempfilename ); }