summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Zidek <mzidek@redhat.com>2013-08-09 16:58:39 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-08-09 18:13:42 +0200
commit560e2b4a220f72de9ef99268a91d0e393e7045bf (patch)
tree30d94aa92c06f156d3dbe22d8b900b585f2f90c8
parent8d4485d2c6ba4b4116f85c60a5af429ad830ca1e (diff)
downloadsssd-560e2b4a220f72de9ef99268a91d0e393e7045bf.tar.gz
sssd-560e2b4a220f72de9ef99268a91d0e393e7045bf.tar.xz
sssd-560e2b4a220f72de9ef99268a91d0e393e7045bf.zip
resolv-tests failing with memory leak
Wait for c-ares to finish before checking for memory leaks. https://fedorahosted.org/sssd/ticket/1899
-rw-r--r--src/tests/resolv-tests.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/resolv-tests.c b/src/tests/resolv-tests.c
index ad89aaf6d..e117b6f7b 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;
@@ -700,7 +700,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);
@@ -787,6 +788,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, leak_check_setup, leak_check_teardown);
/* Do some testing */