]> granicus.if.org Git - strace/commitdiff
tests/attach-f-p.c: increase timeouts
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 7 May 2016 23:51:47 +0000 (23:51 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 7 May 2016 23:51:47 +0000 (23:51 +0000)
Increase timeouts to make the test more reliable on slow systems.

* tests/attach-f-p.c (its): Increase timeouts to 1, 2, and 3 seconds,
respectively.

tests/attach-f-p.c

index 51a53336e7325e6ce39448e13d33c393da65b218..c0d4960ec869148af14ee70f539c6f54e6a6e3c4 100644 (file)
@@ -58,9 +58,9 @@ static const char *child[N] = {
 };
 static const int sigs[N] = { SIGALRM, SIGUSR1, SIGUSR2 };
 static const struct itimerspec its[N] = {
-       { .it_value.tv_nsec = 500000000 },
-       { .it_value.tv_nsec = 700000000 },
-       { .it_value.tv_nsec = 900000000 },
+       { .it_value.tv_sec = 1 },
+       { .it_value.tv_sec = 2 },
+       { .it_value.tv_sec = 3 }
 };
 static thread_arg_t args[N] = {
        { .no = 0 },