From f6d9e160c9d7c76b37b49ce8918b055826806635 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Tue, 26 Nov 2013 11:32:33 -0200 Subject: [PATCH] tests/pm_pc8: add "resuming" state This one was missing. For some reason we never really detected it on our test suite. I checked the Kernel source and now we should be fine. Signed-off-by: Paulo Zanoni --- tests/pm_pc8.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/pm_pc8.c b/tests/pm_pc8.c index 152c61aa..1f6d038d 100644 --- a/tests/pm_pc8.c +++ b/tests/pm_pc8.c @@ -61,6 +61,7 @@ enum runtime_pm_status { RUNTIME_PM_STATUS_ACTIVE, RUNTIME_PM_STATUS_SUSPENDED, RUNTIME_PM_STATUS_SUSPENDING, + RUNTIME_PM_STATUS_RESUMING, RUNTIME_PM_STATUS_UNKNOWN, }; @@ -212,6 +213,8 @@ static enum runtime_pm_status get_runtime_pm_status(void) return RUNTIME_PM_STATUS_ACTIVE; else if (strncmp(buf, "suspending\n", n_read) == 0) return RUNTIME_PM_STATUS_SUSPENDING; + else if (strncmp(buf, "resuming\n", n_read) == 0) + return RUNTIME_PM_STATUS_RESUMING; igt_assert_f(false, "Unknown status %s\n", buf); return RUNTIME_PM_STATUS_UNKNOWN;