]> granicus.if.org Git - libevent/commitdiff
regress dns: drop alarm() (since windows don't have it)
authorAzat Khuzhin <a3at.mail@gmail.com>
Fri, 11 Apr 2014 14:50:10 +0000 (18:50 +0400)
committerAzat Khuzhin <a3at.mail@gmail.com>
Fri, 11 Apr 2014 14:50:10 +0000 (18:50 +0400)
test/regress_dns.c

index 7a7e5181d7459a83aa1558de60d2298e1d5b975a..e5b9a79951f8674770cb01875d20cb25e99598ac 100644 (file)
@@ -859,8 +859,6 @@ dns_inflight_test_impl(void *arg, int flags)
        n_replies_left = 20;
        exit_base = base;
 
-       if (disable_when_inactive)
-               alarm(10);
        event_base_dispatch(base);
 
        for (i=0;i<20;++i) {
@@ -913,7 +911,6 @@ dns_disable_when_inactive_no_ns_test(void *arg)
        n_replies_left = 1;
        exit_base = base;
 
-       alarm(10);
        event_base_dispatch(base);
 
        tt_int_op(n_replies_left, ==, 0);