Commit 0705ce6d authored by Chris Wilson's avatar Chris Wilson 😣

igt/stats: Fixup tests to compile after interface changes

Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
parent d9c3f0b5
......@@ -217,10 +217,11 @@ static void test_reallocation(void)
if (i > 10)
igt_stats_get_median(&stats);
}
igt_assert(!stats.is_float);
igt_assert_eq(stats.n_values, 101);
for (i = 0; i < 101; i++)
igt_assert_eq(stats.values[i], i);
igt_assert_eq(stats.values_u64[i], i);
igt_assert_eq_double(igt_stats_get_mean(&stats), 50.0);
igt_assert_eq_double(igt_stats_get_median(&stats), 50.0);
......
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