mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests: Allow killing processes to take more time.
A too low timeout caused spurious self-test failures in pkd_hello_i1. Signed-off-by: Simon Josefsson <simon@josefsson.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
4bd8d8d362
commit
3468cc0dc5
@@ -242,12 +242,12 @@ int torture_terminate_process(const char *pidfile)
|
||||
}
|
||||
assert_int_not_equal(pid, -1);
|
||||
|
||||
for (count = 0; count < 10; count++) {
|
||||
for (count = 0; count < 500; count++) {
|
||||
/* Make sure the daemon goes away! */
|
||||
kill(pid, SIGTERM);
|
||||
|
||||
/* 10 ms */
|
||||
usleep(10 * 1000);
|
||||
/* 25 ms */
|
||||
usleep(25 * 1000);
|
||||
#ifdef HAVE_VALGRIND_VALGRIND_H
|
||||
if (RUNNING_ON_VALGRIND) {
|
||||
SSH_LOG(SSH_LOG_INFO, "Running within Valgrind, wait one more "
|
||||
|
||||
Reference in New Issue
Block a user