kselftests: timers: Ease alarmtimer-suspend unreasonable latency value
[cascardo/linux.git] / tools / testing / selftests / timers / alarmtimer-suspend.c
index aaffbde..13586b6 100644 (file)
@@ -57,7 +57,7 @@ static inline int ksft_exit_fail(void)
 
 
 #define NSEC_PER_SEC 1000000000ULL
-#define UNREASONABLE_LAT (NSEC_PER_SEC * 4) /* hopefully we resume in 4secs */
+#define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */
 
 #define SUSPEND_SECS 15
 int alarmcount;
@@ -172,7 +172,7 @@ int main(void)
                while (alarmcount < 10) {
                        int ret;
 
-                       sleep(1);
+                       sleep(3);
                        ret = system("echo mem > /sys/power/state");
                        if (ret)
                                break;