[tor-bugs] #17033 [metrics-lib]: failing tests due to system locale

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Sep 10 12:11:51 UTC 2015


#17033: failing tests due to system locale
-------------------------+-------------------------
 Reporter:  iwakeh       |          Owner:  karsten
     Type:  defect       |         Status:  new
 Priority:  minor        |      Milestone:
Component:  metrics-lib  |        Version:
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
-------------------------+-------------------------
 metrics-lib's test assume implicitly that the jvm has the US locale.
 This should be addressed in the code of the respective tests.

 **Quick fix** add the locale setting to the ant task:
 {{{
      <junit fork="true" haltonfailure="true" printsummary="off">
        <classpath refid="classpath"/>
 +      <jvmarg value="-Duser.language=us -Duser.region=US"/>
        <formatter type="plain" usefile="false"/>
 }}}

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


More information about the tor-bugs mailing list