tests/pm_pc8: be more verbose on test_i2c failures
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 26 Feb 2014 19:51:12 +0000 (16:51 -0300)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 26 Feb 2014 22:16:38 +0000 (19:16 -0300)
Whenever I see that error, I go and print the numbers so I can check
which one is failing.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
tests/pm_pc8.c

index 53c1be3..5c74b23 100644 (file)
@@ -633,7 +633,8 @@ static void test_i2c(struct mode_set_data *data)
        int i2c_edids = count_i2c_valid_edids();
        int drm_edids = count_drm_valid_edids(data);
 
-       igt_assert(i2c_edids == drm_edids);
+       igt_assert_f(i2c_edids == drm_edids, "i2c:%d drm:%d", i2c_edids,
+                    drm_edids);
 }
 
 static void setup_runtime_pm(void)