tests: add missing assertion
authorThomas Wood <thomas.wood@intel.com>
Tue, 11 Mar 2014 16:18:48 +0000 (16:18 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 11 Mar 2014 20:13:09 +0000 (21:13 +0100)
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/pm_psr.c

index def8e12..5d28c7a 100644 (file)
@@ -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");