Searched hist:b4039cdd (Results 1 – 1 of 1) sorted by relevance
/aoo42x/main/sal/qa/osl/mutex/ |
H A D | osl_Mutex.cxx | diff b4039cdd Tue Jan 31 05:31:55 UTC 2017 Don Lewis <truckman@apache.org> The clear_001 QA test fails sporadically with a 7 nSec mutex hold time measurement. The nominal hold time for the mutex is 5 seconds, but because the mutex state is polled at 1 second intervals, the actual measured time will probably be 6+ seconds. If the nanoseconds field of the starting timestamp is large, it is possible that it will have wrapped to a small value at the poll time when the mutex is detected as having been released. If the time interval was calculated at full precision by subtracting both the seconds and nanoseconds fields of the before and after timestamps, an interval of just over 6 seconds could look like 7 seconds and a large negative number of nanoseconds. Since this test only subtracts the seconds field, it can think the difference is 7 seconds and fail the "nSec < 7" assertion. As a quick fix, change the assertion to "nSec <= 7". git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1781021 13f79535-47bb-0310-9956-ffa450edef68
|
Completed in 10 milliseconds