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 <paulo.r.zanoni@intel.com>
This commit is contained in:
Paulo Zanoni 2014-10-14 15:09:22 -03:00
parent 97715d5f0f
commit e7abb63516

View File

@ -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]); \