From 7f5e59b7c4f0c04f094e2ff941de9a1c86986b51 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Thu, 7 Feb 2019 19:37:32 +0000 Subject: [PATCH] Add pass/fail for the CPU tests --- daemon/gamemode-tests.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/daemon/gamemode-tests.c b/daemon/gamemode-tests.c index 29cf1ba..1e088b4 100644 --- a/daemon/gamemode-tests.c +++ b/daemon/gamemode-tests.c @@ -259,8 +259,8 @@ static int game_mode_run_feature_tests(void) config_init(config); /* Does the CPU governor get set properly? */ - int cpustatus = 0; { + int cpustatus = 0; LOG_MSG("::: Verifying CPU governor setting\n"); /* get the two config parameters we care about */ @@ -309,6 +309,13 @@ static int game_mode_run_feature_tests(void) cpustatus = -1; } } + + if (cpustatus == 0) + LOG_MSG("::: Passed\n"); + else { + LOG_MSG("::: Failed!\n"); + status = 1; + } } /* Do custom scripts run? */