X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=test.c;h=a096910acef16e31fe13a89303ebe9c3ccfb4375;hp=23fbfb6b4ef8ed0d5f8c9e37446ddd9b1c9b775e;hb=893f204b30affbb4407fcddb16576156a648eac6;hpb=53e9ed0d9638b911d377df28505f09c0bee62a35 diff --git a/test.c b/test.c index 23fbfb6..a096910 100644 --- a/test.c +++ b/test.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2012, 2013, 2014 + * Copyright (C) 2012, 2013, 2014, 2015 * Dale Weiler * * Permission is hereby granted, free of charge, to any person obtaining a copy of @@ -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, NULL); + 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 ); } @@ -1406,7 +1408,6 @@ int main(int argc, char **argv) { } con_change(redirout, redirerr); succeed = test_perform("tests", defs); - stat_info(); return (succeed) ? EXIT_SUCCESS : EXIT_FAILURE; }