diff options
author | John Stultz <john.stultz@linaro.org> | 2015-05-13 18:13:03 -0400 |
---|---|---|
committer | Shuah Khan <shuahkh@osg.samsung.com> | 2015-05-26 17:58:07 -0400 |
commit | 859b1bebe1e0e2e1fdfec77b019b9d7c27588e02 (patch) | |
tree | 2f5cd434f6862e3f59587f680559f28c7c6b7898 | |
parent | 84cbd9e4c4575cbf8155f5c8688eafdd7cc40b57 (diff) |
kselftests: timers: Increase delay between suspends in alarmtimer-suspend
When testing on some hardware, waiting only a second before
re-triggering suspend can keep TCP connections from re-establishing
which after a number of cycles can cause TCP connections to close
while the test is running.
So extend the delay between suspend calls to 3 seconds to let
the connections stay alive.
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
-rw-r--r-- | tools/testing/selftests/timers/alarmtimer-suspend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/timers/alarmtimer-suspend.c b/tools/testing/selftests/timers/alarmtimer-suspend.c index aaffbde1d5ee..99a1ad331ac8 100644 --- a/tools/testing/selftests/timers/alarmtimer-suspend.c +++ b/tools/testing/selftests/timers/alarmtimer-suspend.c | |||
@@ -172,7 +172,7 @@ int main(void) | |||
172 | while (alarmcount < 10) { | 172 | while (alarmcount < 10) { |
173 | int ret; | 173 | int ret; |
174 | 174 | ||
175 | sleep(1); | 175 | sleep(3); |
176 | ret = system("echo mem > /sys/power/state"); | 176 | ret = system("echo mem > /sys/power/state"); |
177 | if (ret) | 177 | if (ret) |
178 | break; | 178 | break; |