Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Wood <thomas.wood@intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t 1/3] tests: add missing assertion
Date: Tue, 11 Mar 2014 16:18:48 +0000	[thread overview]
Message-ID: <1394554730-23229-2-git-send-email-thomas.wood@intel.com> (raw)
In-Reply-To: <1394554730-23229-1-git-send-email-thomas.wood@intel.com>

Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
 tests/pm_psr.c | 1 +
 1 file changed, 1 insertion(+)

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

  reply	other threads:[~2014-03-11 16:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-11 16:18 [PATCH i-g-t 0/3] Various small changes Thomas Wood
2014-03-11 16:18 ` Thomas Wood [this message]
2014-03-11 16:18 ` [PATCH i-g-t 2/3] lib: print the name of the currently running subtest Thomas Wood
2014-03-11 20:11   ` Daniel Vetter
2014-03-11 16:18 ` [PATCH i-g-t 3/3] lib: Add missing header to Makefile.sources Thomas Wood

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1394554730-23229-2-git-send-email-thomas.wood@intel.com \
    --to=thomas.wood@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox