Explorar o código

Run "sleep 5" instead of "sh" for the gamemoderun test

Don't really want to try to run an interactive shell here.
Alex Smith %!s(int64=5) %!d(string=hai) anos
pai
achega
b2b09fbb83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      daemon/gamemode-tests.c

+ 1 - 1
daemon/gamemode-tests.c

@@ -268,7 +268,7 @@ static int run_gamemoderun_and_reaper_tests(struct GameModeConfig *config)
 		/* Close stdout, we don't care if sh prints anything */
 		fclose(stdout);
 		/* Preload into sh and then kill it */
-		if (execl("/usr/bin/gamemoderun", "/usr/bin/gamemoderun", "sh", (char *)NULL) == -1) {
+		if (execl("/usr/bin/gamemoderun", "/usr/bin/gamemoderun", "sleep", "5", (char *)NULL) == -1) {
 			LOG_ERROR("failed to launch gamemoderun with execl: %s\n", strerror(errno));
 			return -1;
 		}