From 7bd4f918c46135762e14c359a5b3c6340364082c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 14 Apr 2016 17:03:07 +0100 Subject: [PATCH] igt/gem_exec_nop: Explain the parallel execution assertion Signed-off-by: Chris Wilson --- tests/gem_exec_nop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/gem_exec_nop.c b/tests/gem_exec_nop.c index 533082a0..6907c2bf 100644 --- a/tests/gem_exec_nop.c +++ b/tests/gem_exec_nop.c @@ -187,7 +187,9 @@ static void all(int fd, uint32_t handle, int timeout) * is frozen. So in general we cannot go faster than the slowest * engine, but we should equally not go any slower. */ - igt_assert(time < max + min); /* ensure parallel execution */ + igt_assert_f(time < max + 10*min/9, /* ensure parallel execution */ + "Average time (%.3fus) exceeds expecation for parallel execution (min %.3fus, max %3.fus; limit set at %.3fus)\n", + time, min, max, max + 10*min/9); } igt_main