Message ID | 1461169552-14159-3-git-send-email-robert.foss@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/tests/core_getversion.c b/tests/core_getversion.c index b336e9f..f6b0126 100644 --- a/tests/core_getversion.c +++ b/tests/core_getversion.c @@ -42,7 +42,9 @@ igt_simple_main igt_assert_neq(strlen(v->name), 0); igt_assert_neq(strlen(v->date), 0); igt_assert_neq(strlen(v->desc), 0); - igt_assert_lt(1, v->version_major); + if (is_i915_device(fd)) + igt_assert_lt(1, v->version_major); + drmFree(v); close(fd); }