diff options
author | Joshua Colp <jcolp@digium.com> | 2015-08-10 11:27:12 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2015-08-10 11:27:12 -0500 |
commit | ff36b5482b05baa3e91161c567162873d7d2b38d (patch) | |
tree | b9b57dfed43e662eef99bf340f1765acd612d114 /tests/test_dns.c | |
parent | 35fe8f74fe680ab2e9b41149762559e3ea02bfa9 (diff) | |
parent | 40caf0ad9bef07bdfb568a88192c157dd1840100 (diff) |
Merge "Replaces clock_gettime() with ast_tsnow()"
Diffstat (limited to 'tests/test_dns.c')
-rw-r--r-- | tests/test_dns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_dns.c b/tests/test_dns.c index 9bbb7daaf..fbc329b88 100644 --- a/tests/test_dns.c +++ b/tests/test_dns.c @@ -676,7 +676,7 @@ static void *resolution_thread(void *dns_query) static const size_t V4_BUFSIZE = sizeof(struct in_addr); char v4_buf[V4_BUFSIZE]; - clock_gettime(CLOCK_REALTIME, &timeout); + timeout = ast_tsnow(); timeout.tv_sec += 5; ast_mutex_lock(&test_resolver_data.lock); @@ -1071,7 +1071,7 @@ AST_TEST_DEFINE(resolver_resolve_async) goto cleanup; } - clock_gettime(CLOCK_REALTIME, &timeout); + timeout = ast_tsnow(); timeout.tv_sec += 10; ast_mutex_lock(&async_data->lock); while (!async_data->complete) { @@ -1261,7 +1261,7 @@ AST_TEST_DEFINE(resolver_resolve_async_cancel) goto cleanup; } - clock_gettime(CLOCK_REALTIME, &timeout); + timeout = ast_tsnow(); timeout.tv_sec += 10; ast_mutex_lock(&async_data->lock); while (!async_data->complete) { |