summaryrefslogtreecommitdiff
path: root/tests/gem_gtt_hog.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-02-12 00:05:57 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-02-12 00:07:19 +0100
commit58633cfde46cb6010b3bdeeca58a52ec536ff66c (patch)
tree75c3f0e03e269f0ceccf808ef7eb68962a6245b3 /tests/gem_gtt_hog.c
parent36be04bdfb1d34f11b6bd50db7c50d213c4498b7 (diff)
test/gem_gtt_hog: bail out earlier
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>
Diffstat (limited to 'tests/gem_gtt_hog.c')
-rw-r--r--tests/gem_gtt_hog.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/gem_gtt_hog.c b/tests/gem_gtt_hog.c
index 53d7dd7c..5f141092 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);