Message ID | 1430856101-1825-1-git-send-email-przanoni@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/kms_fbc_crc.c b/tests/kms_fbc_crc.c index 1320bad..3fd870d 100644 --- a/tests/kms_fbc_crc.c +++ b/tests/kms_fbc_crc.c @@ -198,7 +198,7 @@ static bool fbc_enabled(data_t *data) status = igt_debugfs_fopen("i915_fbc_status", "r"); igt_assert(status); - igt_assert_eq(fread(str, sizeof(str) - 1, 1, status), 1); + igt_assert(fread(str, 1, sizeof(str) - 1, status) > 0); fclose(status); return strstr(str, "FBC enabled") != NULL; }