diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-08 17:29:06 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-08 17:29:06 -0400 |
commit | 3cc374456bc9428fac3ce95203d15ebbe393c09c (patch) | |
tree | b97c1a4a79e16cd045abaed170c1875f67c6dad4 /src/test/test_workqueue.c | |
parent | 1e330e1947b750be12b217c944534f9284509751 (diff) | |
download | tor-3cc374456bc9428fac3ce95203d15ebbe393c09c.tar.gz tor-3cc374456bc9428fac3ce95203d15ebbe393c09c.zip |
Add several test scripts wrapping test_workqueue
This is a fairly easy way for us to get our test coverage up on
compat_threads.c and workqueue.c -- I already implemented these
tests, so we might as well enable them.
Diffstat (limited to 'src/test/test_workqueue.c')
-rw-r--r-- | src/test/test_workqueue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_workqueue.c b/src/test/test_workqueue.c index cbcf596b22..75d68a7ce0 100644 --- a/src/test/test_workqueue.c +++ b/src/test/test_workqueue.c @@ -400,6 +400,9 @@ main(int argc, char **argv) } rq = replyqueue_new(as_flags); + if (as_flags && rq == NULL) + return 77; // 77 means "skipped". + tor_assert(rq); tp = threadpool_new(opt_n_threads, rq, new_state, free_state, NULL); |