diff options
author | Michal Zidek <mzidek@redhat.com> | 2013-07-22 14:30:47 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-07-25 17:43:05 +0200 |
commit | d910b4ebaa8e68bd24ad22b8f65aed7c6812aaf1 (patch) | |
tree | 1e630748677012ac2d35a7e5bbdb4d7831e6fc63 /src | |
parent | 73e0e5fc1058e3e2c717c97035e8a378d090db69 (diff) | |
download | sssd-d910b4ebaa8e68bd24ad22b8f65aed7c6812aaf1.tar.gz sssd-d910b4ebaa8e68bd24ad22b8f65aed7c6812aaf1.tar.bz2 sssd-d910b4ebaa8e68bd24ad22b8f65aed7c6812aaf1.zip |
resolv-tests failing with memory leak
Wait for c-ares to finish before checking for memory leaks.
https://fedorahosted.org/sssd/ticket/1899
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/resolv-tests.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/resolv-tests.c b/src/tests/resolv-tests.c index 49fe2a5f..a8e4c412 100644 --- a/src/tests/resolv-tests.c +++ b/src/tests/resolv-tests.c @@ -38,7 +38,7 @@ /* Interface under test */ #include "resolv/async_resolv.h" -#define RESOLV_DEFAULT_TIMEOUT 5 +#define RESOLV_DEFAULT_TIMEOUT 6 static int use_net_test; static char *txt_host; @@ -803,7 +803,8 @@ START_TEST(test_resolv_free_req) gettimeofday(&free_tv, NULL); free_tv.tv_sec += 1; free_tv.tv_usec = 0; - terminate_tv.tv_sec = free_tv.tv_sec + 1; + /* Give enought time for c-ares request to terminate */ + terminate_tv.tv_sec = free_tv.tv_sec + 6; terminate_tv.tv_usec = 0; free_timer = tevent_add_timer(test_ctx->ev, test_ctx, free_tv, resolv_free_req, req); @@ -890,6 +891,7 @@ Suite *create_resolv_suite(void) Suite *s = suite_create("resolv"); TCase *tc_resolv = tcase_create("RESOLV Tests"); + tcase_set_timeout(tc_resolv, 8); tcase_add_checked_fixture(tc_resolv, ck_leak_check_setup, ck_leak_check_teardown); /* Do some testing */ |