[tor-bugs] #9363 [Tor]: test_pt_configure_proxy() tests should be improved.

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 5 15:29:28 UTC 2013


#9363: test_pt_configure_proxy() tests should be improved.
--------------------+-------------------------------------------------------
 Reporter:  nickm   |          Owner:  asn               
     Type:  defect  |         Status:  needs_review      
 Priority:  normal  |      Milestone:  Tor: 0.2.5.x-final
Component:  Tor     |        Version:                    
 Keywords:  tor-pt  |         Parent:                    
   Points:          |   Actualpoints:                    
--------------------+-------------------------------------------------------

Comment(by nickm):

 You CAN test stuff that messes with globals.  I'm not sure why you think
 you can't.  If you want the changes to that variable to be isolated to a
 single unit test, use the TT_FORK flag to run that unit test in its own
 process.  You can access that variable by using get_or_state().

 >Also, I'm getting a compile error when I try to build with coverage:

 First try 'make clean'.  If that doesn't work, do a search for "relocation
 R_X86_64_32 against '.data' can not be used when making a shared object;
 recompile with -fPIC" .  Maybe there's an additional option we need for
 your host?  (What kind of system, building how?)

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


More information about the tor-bugs mailing list