diff mbox

[i-g-t,1/2] core_getversion: Switched from igt_assert to assert helpers.

Message ID 1461160822-9177-2-git-send-email-robert.foss@collabora.com (mailing list archive)
State New, archived
Headers show

Commit Message

Robert Foss April 20, 2016, 2 p.m. UTC
From: Robert Foss <robert.foss@collabora.com>

Switched to assert helpers to enable better error output.

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

Patch

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);
 }