tests: add missing assertion

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Thomas Wood 2014-03-11 16:18:48 +00:00 committed by Daniel Vetter
parent 682f69385a
commit 6c659264a6

View 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");