Fix two problems in the 0.2.8.x unit tests
commit1bac468882fd732460d8a25735131d632f977bfe
authorNick Mathewson <nickm@torproject.org>
Thu, 4 Feb 2016 17:30:48 +0000 (4 12:30 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 4 Feb 2016 17:30:48 +0000 (4 12:30 -0500)
tree5d0abc611d1a95ce06b4146237a96df469c7811a
parent5da517e6897c4b997bb165dfd11e95f8f9c2bbbe
Fix two problems in the 0.2.8.x unit tests

1. We were sometimes using libevent uninitialized, which is Not Allowed.

2. The malformed-PTR dns test was supposed to get a -1 output... but
   the test was wrong, since it forgot that in-addr.arpa addresses
   are in reverse order.

Bugs not in any released tor.
src/test/test.c
src/test/test_circuitmux.c
src/test/test_dns.c
src/test/testing_common.c