[tor-dev] Bored C programmers? I've got some warnings for you....

teor teor2345 at gmail.com
Thu Sep 8 23:58:56 UTC 2016


> On 9 Sep 2016, at 01:11, Nick Mathewson <nickm at torproject.org> wrote:
> 
> On Wed, Aug 31, 2016 at 2:16 PM, Nick Mathewson <nickm at torproject.org> wrote:
>> Hi, all!
>> 
>> I've just turned on some code [1] that makes all of the "bug" warnings
>> that occur during the unit tests get logged to console.  Previously,
>> all warnings from the unit tests were off by default.
>> 
>> Now there are a lot of warnings from the unit tests!  For each one, we
>> should either:
>> 
>>  1) Decide that the warning message wouldn't actually reflect a bug
>> in Tor, and change it.
>> 
>>  2) Decide that there's a bug in the unit tests (or elsewhere) and fix it.
>> 
>>  3) Decide that _in this case_, the unit tests are correctly testing
>> code that *would* indicate a real bug in Tor.  In this case, we should
>> use the functions in log_test_helpers.c to temporarily suppress the
>> log messages, and make sure that this message (and only this message!)
>> is logged.
>> 
>> This is going to be a fair bit of work, but with any luck, we can
>> actually fix it all before the next 029 alpha comes out, and improve
>> our confidence in our unit tests.
> 
> We're down to 17 of these.

Thanks for turning these on, they were quite helpful when trying to work out why my improved single onion service unit tests were failing. (Turns out you need a DataDirectory to create a lock file to create hidden service keys. Who would have thought?)

Tim

Tim Wilson-Brown (teor)

teor2345 at gmail dot com
PGP C855 6CED 5D90 A0C5 29F6 4D43 450C BA7F 968F 094B
ricochet:ekmygaiu4rzgsk6n
xmpp: teor at torproject dot org






-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20160909/43a2bddc/attachment.sig>


More information about the tor-dev mailing list