mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 20:10:35 +00:00
Fix testsuite for when a process crashes (do not consider it a success)
This commit is contained in:
parent
a1f1ec6d65
commit
0e077c6e42
1 changed files with 3 additions and 2 deletions
5
test.c
5
test.c
|
@ -964,6 +964,7 @@ static void task_destroy(void) {
|
|||
static bool task_trymatch(size_t i, char ***line) {
|
||||
bool success = true;
|
||||
bool process = true;
|
||||
int retval = EXIT_SUCCESS;
|
||||
FILE *execute;
|
||||
char buffer[4096];
|
||||
task_template_t *tmpl = task_tasks[i].tmpl;
|
||||
|
@ -1094,11 +1095,11 @@ static bool task_trymatch(size_t i, char ***line) {
|
|||
}
|
||||
|
||||
if (process)
|
||||
pclose(execute);
|
||||
retval = pclose(execute);
|
||||
else
|
||||
fs_file_close(execute);
|
||||
|
||||
return success;
|
||||
return success && retval == EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
static const char *task_type(task_template_t *tmpl) {
|
||||
|
|
Loading…
Reference in a new issue