소스 검색

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
Marc Di Luzio 5 년 전
부모
커밋
ef29b35258
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      daemon/gamemode-tests.c

+ 1 - 0
daemon/gamemode-tests.c

@@ -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));
 		if (fail) {
 			LOG_ERROR("values for threads were not set correctly!\n");
+			gamemode_request_end();
 			exit(-1);
 		}