diff mbox

[5/7] test/gem_gtt_hog: bail out earlier

Message ID 1392160051-10998-5-git-send-email-daniel.vetter@ffwll.ch (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Vetter Feb. 11, 2014, 11:07 p.m. UTC
This way we properly skip instead of failing hard. Just result
polish when running on non-intel systems.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 tests/gem_gtt_hog.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c
index 53d7dd7c2250..5f14109226d7 100644
--- a/tests/gem_gtt_hog.c
+++ b/tests/gem_gtt_hog.c
@@ -150,6 +150,10 @@  igt_simple_main
 	pid_t children[64];
 	int n;
 
+	/* check for an intel gpu before goint nuts. */
+	int fd = drm_open_any();
+	close(fd);
+
 	igt_skip_on_simulation();
 
 	gettimeofday(&start, NULL);