Make sure we don't leave a hanging gamemode request from the child process

Otherwise other tests might have to wait for the reaper thread to clean it up
This commit is contained in:
Marc Di Luzio
2019-05-13 18:52:38 +01:00
parent 139b90e0b7
commit ef29b35258

View File

@ -627,6 +627,7 @@ static pid_t run_tests_on_process_tree(int innactive, int active, int (*func)(pi
fail |= (active != func(info[i].this)); fail |= (active != func(info[i].this));
if (fail) { if (fail) {
LOG_ERROR("values for threads were not set correctly!\n"); LOG_ERROR("values for threads were not set correctly!\n");
gamemode_request_end();
exit(-1); exit(-1);
} }