diff mbox

[i-g-t,v2,2/2] core_getversion: Only verify major version for i915.

Message ID 1461169552-14159-3-git-send-email-robert.foss@collabora.com (mailing list archive)
State New, archived
Headers show

Commit Message

Robert Foss April 20, 2016, 4:25 p.m. UTC
From: Robert Foss <robert.foss@collabora.com>

This change mirrors the change in drm made by krh@redhat.com
on "Mon Apr 6 17:18:17 2009" on the drm branch intel_on_all_hw.

The assert(major < 1) is only needed for the legacy intel driver.

Signed-off-by: Robert Foss <robert.foss@collabora.com>
---
 tests/core_getversion.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff mbox

Patch

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);
 }