From 76b53ef68d39063c4b0203aa8db2b32dcce1e3b4 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 26 Jun 2012 19:47:30 +0200 Subject: tests/gem_wait_rendering_timeout: needs more fudge Due to the way we calculate the workload by doubling it each time we might end up with almost twice as much as we want. Hence increase our fudge by 1.5 to account for that. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=50666 --- tests/gem_wait_render_timeout.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/gem_wait_render_timeout.c b/tests/gem_wait_render_timeout.c index e19b3c44..bbe98c06 100644 --- a/tests/gem_wait_render_timeout.c +++ b/tests/gem_wait_render_timeout.c @@ -167,8 +167,10 @@ int main(int argc, char **argv) if (do_signals) drmtest_fork_signal_helper(); - /* We should be able to do half as much work in the same amount of time */ - for (i = 0; i < iter/2; i++) + /* We should be able to do half as much work in the same amount of time, + * but because we might schedule almost twice as much as required, we + * might accidentally time out. Hence add some fudge. */ + for (i = 0; i < iter/3; i++) blt_color_fill(batch, dst2, BUF_PAGES); intel_batchbuffer_flush(batch); -- cgit v1.2.3