summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-02-17 16:29:36 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2014-02-21 10:07:30 -0300
commit6f288749f4f8c454f65e7de38c9bcff7a9a29411 (patch)
tree746eab7440504dce3ad39b17342a835266643370 /tests
parentc9524235dd5eb3cf2d9fcd7d264c78cc2d1f3802 (diff)
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 <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/pm_pc8.c5
1 files changed, 0 insertions, 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)