[Intel-gfx] [PATCH i-g-t v2 1/2] core_getversion: Switched from igt_assert to assert helpers.

robert.foss at collabora.com robert.foss at collabora.com
Wed Apr 20 16:25:51 UTC 2016


From: Robert Foss <robert.foss at collabora.com>

Switched to assert helpers to enable better error output.

Signed-off-by: Robert Foss <robert.foss at collabora.com>
---
 tests/core_getversion.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/core_getversion.c b/tests/core_getversion.c
index 5830068..b336e9f 100644
--- a/tests/core_getversion.c
+++ b/tests/core_getversion.c
@@ -39,10 +39,10 @@ igt_simple_main
 
 	fd = drm_open_driver(DRIVER_ANY);
 	v = drmGetVersion(fd);
-	igt_assert(strlen(v->name) != 0);
-	igt_assert(strlen(v->date) != 0);
-	igt_assert(strlen(v->desc) != 0);
-	igt_assert(v->version_major >= 1);
+	igt_assert_neq(strlen(v->name), 0);
+	igt_assert_neq(strlen(v->date), 0);
+	igt_assert_neq(strlen(v->desc), 0);
+	igt_assert_lt(1, v->version_major);
 	drmFree(v);
 	close(fd);
 }
-- 
2.5.0



More information about the Intel-gfx mailing list