Commit e7abb635 authored by Paulo Zanoni's avatar Paulo Zanoni

tests/pm_rpm: use igt_assert_eq() on COMPARE()

A few weeks ago we were hitting this assertion, and the _eq macro is
more useful when you're debugging.
Signed-off-by: Paulo Zanoni's avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
parent 97715d5f
......@@ -459,7 +459,7 @@ static void free_drm_info(struct compare_data *data)
drmModeFreeResources(data->res);
}
#define COMPARE(d1, d2, data) igt_assert(d1->data == d2->data)
#define COMPARE(d1, d2, data) igt_assert_eq(d1->data, d2->data)
#define COMPARE_ARRAY(d1, d2, size, data) do { \
for (i = 0; i < size; i++) \
igt_assert(d1->data[i] == d2->data[i]); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment