[Intel-gfx] [PATCH i-g-t] igt/gem_pwrite_pread: Requires GEM

Chris Wilson chris at chris-wilson.co.uk
Wed Jul 4 14:38:42 UTC 2018


Mark up gem_pwrite_pread's dependence on a functioning GPU, by calling
igt_require_gem in its setup fixture.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 tests/gem_pwrite_pread.c               | 1 +
 tests/gem_tiled_partial_pwrite_pread.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c
index 383a57f72..f91fc7c4f 100644
--- a/tests/gem_pwrite_pread.c
+++ b/tests/gem_pwrite_pread.c
@@ -272,6 +272,7 @@ int main(int argc, char **argv)
 		uint32_t devid;
 
 		fd = drm_open_driver(DRIVER_INTEL);
+		igt_require_gem(fd);
 
 		dst = gem_create(fd, object_size);
 		src = gem_create(fd, object_size);
diff --git a/tests/gem_tiled_partial_pwrite_pread.c b/tests/gem_tiled_partial_pwrite_pread.c
index fe573c37c..39779dbed 100644
--- a/tests/gem_tiled_partial_pwrite_pread.c
+++ b/tests/gem_tiled_partial_pwrite_pread.c
@@ -259,6 +259,7 @@ igt_main
 
 	igt_fixture {
 		fd = drm_open_driver(DRIVER_INTEL);
+		igt_require_gem(fd);
 
 		bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
 		//drm_intel_bufmgr_gem_enable_reuse(bufmgr);
-- 
2.18.0



More information about the Intel-gfx mailing list