[Intel-gfx] [PATCH] tests/gem_reg_read: Fix errno check

Daniel Vetter daniel.vetter at ffwll.ch
Thu May 15 10:04:15 CEST 2014


So I accidentally fixed a check when converting to the new macros and
the kernel never returned -ENOENT for invalid regs. Adjust the test.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 tests/gem_reg_read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gem_reg_read.c b/tests/gem_reg_read.c
index ac0fc1a7fef3..4220d69f8aaa 100644
--- a/tests/gem_reg_read.c
+++ b/tests/gem_reg_read.c
@@ -73,7 +73,7 @@ igt_simple_main
 	reg_read.offset = 0x12345678;
 	ret = drmIoctl(fd, REG_READ_IOCTL, &reg_read);
 
-	igt_assert(ret != 0 && errno == ENOENT);
+	igt_assert(ret != 0 && errno == EINVAL);
 
 	close(fd);
 }
-- 
1.8.1.4




More information about the Intel-gfx mailing list