Message ID | 1461169552-14159-2-git-send-email-robert.foss@collabora.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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); }