[tor-bugs] #29656 [Core Tor/Tor]: describe global initialization in our tinytest-based unit tests

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Mar 4 18:34:34 UTC 2019


#29656: describe global initialization in our tinytest-based unit tests
-------------------------------+------------------------------
     Reporter:  catalyst       |      Owner:  (none)
         Type:  defect         |     Status:  new
     Priority:  Medium         |  Milestone:  Tor: unspecified
    Component:  Core Tor/Tor   |    Version:
     Severity:  Normal         |   Keywords:  developer-doc
Actual Points:                 |  Parent ID:
       Points:                 |   Reviewer:
      Sponsor:  Sponsor31-can  |
-------------------------------+------------------------------
 I was trying to figure out how global state initialization happens in our
 unit tests.  I eventually found that src/test/test_common.c is the
 location of the `main()` function for the tinytest-based test programs.
 We should document this better, probably in doc/HACKING/WritingTests.md.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29656>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list