summaryrefslogtreecommitdiff
path: root/tests/pm_rpm.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-10-14 15:09:22 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2014-10-14 15:18:07 -0300
commite7abb635162a3729f5a86419420f0192b557fcde (patch)
treee217febc3cd435e95abe80e4333dcc544d1423d6 /tests/pm_rpm.c
parent97715d5f0fad67da1d8e06db8f9d5a3c1d1aa51c (diff)
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>
Diffstat (limited to 'tests/pm_rpm.c')
-rw-r--r--tests/pm_rpm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pm_rpm.c b/tests/pm_rpm.c
index 90370c36..4ee3ca77 100644
--- a/tests/pm_rpm.c
+++ b/tests/pm_rpm.c
@@ -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]); \