mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
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:
parent
97715d5f0f
commit
e7abb63516
@ -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]); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user