[tor-bugs] #6286 [Stem]: test.integ.util.proc tests fail (on linux)

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Jul 3 19:09:41 UTC 2012


#6286: test.integ.util.proc tests fail (on linux)
--------------------+-------------------------------------------------------
 Reporter:  neena   |          Owner:  atagar
     Type:  defect  |         Status:  new   
 Priority:  normal  |      Milestone:        
Component:  Stem    |        Version:        
 Keywords:          |         Parent:        
   Points:          |   Actualpoints:        
--------------------+-------------------------------------------------------

Comment(by neena):

 test_get_connections fails because
 {{{
 +11:49% ls -l
 ...
 dr-x------ 2 root  root  0 Jul  3 23:43 fd
 ...
 }}}

 test_get_stats probably failing because my /proc/*/stat has 47 fields
 instead of 44
 {{{
 +11:46% cat stat
 5269 (tor) S 5266 5266 4280 34824 5266 4202496 3417 0 0 0 220 8 0 0 20 0 1
 0 2586787 15482880 2821 4294967295 1 1 0 0 0 0 0 0 16865795 4294967295 0 0
 17 0 0 0 0 0 0 0 0 0
 }}}

 This is from stem.util.proc.get_stats
 {{{  if len(stat_comp) != 44 and _is_float(stat_comp[13], stat_comp[14],
 stat_comp[21]):
     exc = IOError("stat file had an unexpected format: %s" % stat_path)
     _log_failure(parameter, exc)
     raise exc
 }}}

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


More information about the tor-bugs mailing list