tests/sysfs_rps: Fix igt_require conversion

Another fumble caught by QA.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68461
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter 2013-08-23 09:30:47 +02:00
parent ea80196d9f
commit fd88db77cc

View File

@ -148,7 +148,8 @@ int main(int argc, char *argv[])
ret = asprintf(&path, sysfs_base_path, device, junk->name);
igt_assert(ret != -1);
junk->filp = fopen(path, junk->mode);
igt_require(junk->filp == NULL);
igt_require(junk->filp);
val = readval(junk->filp);
igt_assert(val >= 0);
junk++;