diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-11-26 11:32:33 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2013-11-26 11:37:25 -0200 |
commit | f6d9e160c9d7c76b37b49ce8918b055826806635 (patch) | |
tree | f8138267dfe91be551fa4131d5765693c0b3a909 | |
parent | 0df88f5e647a38b52b46d010c54f2594c98d8018 (diff) |
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 <paulo.r.zanoni@intel.com>
-rw-r--r-- | tests/pm_pc8.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |