[Xapian-tickets] [Xapian] #308: qp_stem_scale1 sometimes fails on Windows

Xapian nobody at xapian.org
Wed Oct 29 18:56:00 GMT 2008


#308: qp_stem_scale1 sometimes fails on Windows
-------------------------------+--------------------------------------------
 Reporter:  charliejuggler     |        Owner:  olly    
     Type:  defect             |       Status:  assigned
 Priority:  normal             |    Milestone:  1.0.9   
Component:  Test Suite         |      Version:  1.0.8   
 Severity:  normal             |   Resolution:          
 Keywords:                     |    Blockedby:          
 Platform:  Microsoft Windows  |     Blocking:          
-------------------------------+--------------------------------------------

Comment(by olly):

 OK, this is now a different issue.  The "small" run takes just less than
 two ticks, and the "large" run just more.

 Using <= doesn't help us here, as it seems the "tick" interval is
 something like 1/64 of a second, and so gets rounded when expressed in
 thousands of a second.  So we either get 0.015 or 0.016 for the interval
 between ticks when these rounded times are subtracted, and 0.031 isn't <
 0.015 * 2 so we can still fail.

 If we could easily read the clock resolution, we could address this.
 Otherwise, I'm not quite sure how best to address this.  We could use
 {{{(time2 < time1 * 2.14)}}} but that's kind of arbitrary...

 Making the test just take longer helps for current systems, but at some
 point computers will get fast enough that we'll hit these issues again.

 For 1.0.9, I'm leaning towards applying the latest patch here (which helps
 reduce how often this test fails) and just documenting the issue, but
 thoughts welcome.

-- 
Ticket URL: <http://trac.xapian.org/ticket/308#comment:5>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list