From a0d737f9dbcb79dca114300caed39c1c81a90f51 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sun, 27 Jan 2019 13:22:34 +0000 Subject: [PATCH] Correct error message when the initial query fails --- daemon/gamemode-tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/gamemode-tests.c b/daemon/gamemode-tests.c index 3182b2b..68cbd26 100644 --- a/daemon/gamemode-tests.c +++ b/daemon/gamemode-tests.c @@ -47,7 +47,7 @@ static int verify_gamemode_initial(void) { int status = 0; - if ((status = gamemode_query_status()) != 0) { + if ((status = gamemode_query_status()) != 0 && status != -1) { fprintf( stderr, "ERROR: gamemode is currently active, tests require gamemode to start deactivated!\n"); @@ -266,4 +266,4 @@ int game_mode_run_client_tests() return -1; return status; -} \ No newline at end of file +}