mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
igt.cocci: Replace igt_assert() with igt_assert_CMP() where possible
The integer comparison macros give us better error output by including the actual values that failed the comparison. Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
committed by
Daniel Vetter
parent
14a3d88a09
commit
07be8fec15
+2
-2
@@ -112,12 +112,12 @@ static int test_format(const char *test_name,
|
||||
|
||||
ret = asprintf(&mode_format_str, "%s @ %dHz / %s",
|
||||
mode->name, mode->vrefresh, igt_format_str(format));
|
||||
igt_assert(ret > 0);
|
||||
igt_assert_lt(0, ret);
|
||||
ret = asprintf(&cconf_str, "pipe %s, encoder %s, connector %s",
|
||||
kmstest_pipe_name(cconf->pipe),
|
||||
kmstest_encoder_type_str(cconf->encoder->encoder_type),
|
||||
kmstest_connector_type_str(cconf->connector->connector_type));
|
||||
igt_assert(ret > 0);
|
||||
igt_assert_lt(0, ret);
|
||||
|
||||
igt_info("Beginning test %s with %s on %s\n",
|
||||
test_name, mode_format_str, cconf_str);
|
||||
|
||||
Reference in New Issue
Block a user