소스 검색

Add pass/fail for the CPU tests

Marc Di Luzio 6 년 전
부모
커밋
7f5e59b7c4
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      daemon/gamemode-tests.c

+ 8 - 1
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? */