diff mbox

[5/6] tests/gem_exec_parse: Test for batches w/o MI_BATCH_BUFFER_END

Message ID 1392747421-25760-5-git-send-email-bradley.d.volkin@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

bradley.d.volkin@intel.com Feb. 18, 2014, 6:17 p.m. UTC
From: Brad Volkin <bradley.d.volkin@intel.com>

Signed-off-by: Brad Volkin <bradley.d.volkin@intel.com>
---
 tests/gem_exec_parse.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox

Patch

diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c
index 9e90408..004c3bf 100644
--- a/tests/gem_exec_parse.c
+++ b/tests/gem_exec_parse.c
@@ -257,6 +257,15 @@  igt_main
 				      -EINVAL));
 	}
 
+	igt_subtest("batch-without-end") {
+		uint32_t noop[1024] = { 0 };
+		igt_assert(
+			   exec_batch(fd, handle,
+				      noop, sizeof(noop),
+				      I915_EXEC_RENDER,
+				      -EINVAL));
+	}
+
 	igt_fixture {
 		gem_close(fd, handle);