X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=test.c;h=6fdee5134de3d07d85738035f881d62b2234a1a8;hb=988b4b49606724ef4275a25d8ea95fdc2792ee51;hp=6c23dd7246008600b00001caecc146d790fd19dc;hpb=0e077c6e42a55a338e1a326aed59977187ea5525;p=xonotic%2Fgmqcc.git diff --git a/test.c b/test.c index 6c23dd7..6fdee51 100644 --- a/test.c +++ b/test.c @@ -184,7 +184,7 @@ static int task_pclose(FILE **handles) { return open->handles; } - static void task_pclose(FILE **files) { + static int task_pclose(FILE **files) { popen_t *open = ((popen_t*)files); fs_file_close(files[1]); fs_file_close(files[2]); @@ -192,6 +192,8 @@ static int task_pclose(FILE **handles) { remove(open->name_out); mem_d(open); + + return EXIT_SUCCESS; } # define popen _popen # define pclose _pclose @@ -443,9 +445,6 @@ static bool task_template_parse(const char *file, task_template_t *tmpl, FILE *f goto failure; } - if (value && (*value == ' ' || *value == '\t')) - value++; - /* * Value will contain a newline character at the end, we need to strip * this otherwise kaboom, seriously, kaboom :P @@ -1424,6 +1423,5 @@ int main(int argc, char **argv) { succeed = test_perform("tests", defs); stat_info(); - return (succeed) ? EXIT_SUCCESS : EXIT_FAILURE; }