[tor-bugs] #8308 [Tor]: Use smartlist-of-strings rather than preallocated-charbuf for more directory stuff

Tor Bug Tracker & Wiki blackhole at torproject.org
Tue Apr 2 16:01:57 UTC 2013


#8308: Use smartlist-of-strings rather than preallocated-charbuf for more
directory stuff
--------------------------------+-------------------------------------------
 Reporter:  nickm               |          Owner:                    
     Type:  defect              |         Status:  needs_revision    
 Priority:  normal              |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor                 |        Version:                    
 Keywords:  tor-auth tor-relay  |         Parent:                    
   Points:                      |   Actualpoints:                    
--------------------------------+-------------------------------------------

Comment(by nickm):

 (Because this is obvious the best place to record the methodology: Run
 gcov on the before and after tests in separate directories, then use the
 following perl one-liners:
 {{{
 perl -i -pe 's/^Cs*\d+:/        1:/;' *.gcov
 perl -i -pe 's/:\s*\d+:/::/;' *.gcov
 }}}

 This renders the gcov output suitable for passing through "diff -ur". Look
 for lines matching the pattern /^\+ *#/. Those are untested lines that
 changed.)

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


More information about the tor-bugs mailing list