summaryrefslogtreecommitdiff
path: root/tests/pm_rps.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-03-07 19:38:30 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2016-03-16 19:58:09 +0200
commitc8d5c353bf7eca652fd3a6ad6cd151d3127d2de5 (patch)
treef9dfb968b17d91f27fc360149d38904ac5c8e59c /tests/pm_rps.c
parentf651493a6bcea77b0c8ffe2e4f986bd167d6cb92 (diff)
tests/pm_rps: Fix assert for sysfs writes
fprintf() returns a negative value on error. Fix the assert to catch that. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/pm_rps.c')
-rw-r--r--tests/pm_rps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pm_rps.c b/tests/pm_rps.c
index 72e47e728e2c..74bbdc852167 100644
--- a/tests/pm_rps.c
+++ b/tests/pm_rps.c
@@ -130,7 +130,7 @@ static int do_writeval(FILE *filp, int val, int lerrno, bool readback_check)
igt_assert_eq(readval(filp), orig);
} else {
/* Expecting no error */
- igt_assert_neq(ret, 0);
+ igt_assert_lt(0, ret);
wait_freq_settle();
if (readback_check)
igt_assert_eq(readval(filp), val);