From 6f288749f4f8c454f65e7de38c9bcff7a9a29411 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Mon, 17 Feb 2014 16:29:36 -0300 Subject: [PATCH] tests/pm_pc8: remove sleep() call when setting up the environment This sleep was added because sometimes we didn't reach PC8+ residencies, but it was still not enough to prevent the problem every time, and it is really not needed most of the times. I have investigated more and it seems that we only have to wait until after some minutes have past since the machine booted. So just remove the sleep for now since when you run each subtest in a separate process, you end up having to sleep at every subtest. Signed-off-by: Paulo Zanoni --- tests/pm_pc8.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index f34a1138..982b82e7 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -741,11 +741,6 @@ static void setup_non_graphics_runtime_pm(void) write(fd, "auto\n", 5); close(fd); } - - /* For some yet unknown reason, it takes some time for the machine to - * reach PC8+ residencies after we do this. I don't really know how much - * we should wait, but this value seems to be working for me. */ - sleep(10); } static void setup_environment(void)