[Intel-gfx] [PATCH i-g-t 2/2] tests/kms_flip: Half the duration time for basic-*vs-modeset/flip tests.

Marius Vlad marius.c.vlad at intel.com
Wed Apr 20 17:49:57 UTC 2016


basic-flip-vs-dpms and basic-flip-vs-modeset together take roughly 2m
to run. Adjust the duration time to a maximum of 500ms.

Signed-off-by: Marius Vlad <marius.c.vlad at intel.com>
---
 tests/kms_flip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_flip.c b/tests/kms_flip.c
index 3d44544..fd8206f 100644
--- a/tests/kms_flip.c
+++ b/tests/kms_flip.c
@@ -1458,7 +1458,7 @@ static int run_test(int duration, int flags)
 	}
 
 	igt_require(modes);
-	duration = duration * 1000 / modes;
+	duration = duration * 500 / modes;
 	duration = max(500, duration);
 
 	/* Find any connected displays */
-- 
2.5.0



More information about the Intel-gfx mailing list