diff mbox

[i-g-t,1/3] tests: add missing assertion

Message ID 1394554730-23229-2-git-send-email-thomas.wood@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Wood March 11, 2014, 4:18 p.m. UTC
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
 tests/pm_psr.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/tests/pm_psr.c b/tests/pm_psr.c
index def8e12..5d28c7a 100644
--- a/tests/pm_psr.c
+++ b/tests/pm_psr.c
@@ -57,6 +57,7 @@  static int get_perf(const char *path)
 	igt_assert(ret != 0);
 	enabled = strcmp(str, "yes") == 0;
 	ret = fscanf(file, "Performance_Counter: %i", &perf);
+	igt_assert(ret != 0);
 
 	if (!sink)
 	    igt_skip("This panel does not support PSR.\n");