tests/pm_pc8: add "resuming" state
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 26 Nov 2013 13:32:33 +0000 (11:32 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Tue, 26 Nov 2013 13:37:25 +0000 (11:37 -0200)
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>
tests/pm_pc8.c

index 152c61a..1f6d038 100644 (file)
@@ -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;