endif
TESTS += src/test/test src/test/test-slow src/test/test-memwipe \
- $(TESTSCRIPTS)
+ src/test/test_workqueue $(TESTSCRIPTS)
### This is a lovely feature, but it requires automake >= 1.12, and Tor
### doesn't require that yet. Below is a kludge to work around.
while (n_queued++ < n) {
ent = add_work(tp);
if (! ent) {
+ puts("Z");
tor_event_base_loopexit(tor_libevent_get_base(), NULL);
return -1;
}
shutting_down = 1;
threadpool_queue_update(tp, NULL,
workqueue_do_shutdown, NULL, NULL);
+ {
+ struct timeval limit = { 2, 0 };
+ tor_event_base_loopexit(tor_libevent_get_base(), &limit);
+ }
}
}
}
{
- struct timeval limit = { 30, 0 };
+ struct timeval limit = { 180, 0 };
tor_event_base_loopexit(tor_libevent_get_base(), &limit);
}