<< Back to previous view

[QB-1269] Boost Test Reporter interprets/reports TestingTime incorrectly
Created: 16/May/12  Updated: 26/May/12

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 4.0.31
Fix Version/s: 4.0.40

Type: Bug Priority: Major
Reporter: U. Artie Eoff Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Fedora 16 x86_64 (Linux)


 Description   
Boost.Test reports the TestingTime as microseconds (e.g. 20000 microseconds = 0.02 seconds). However, the QuickBuild Boost Test Reporter plugin interprets the TestingTime value as milliseconds. That is, the Boost Test Reporter plugin displays 20s in the QuickBuild report when boost.test results reports 20000 (which is in microseconds).

If you examine the boost.test source code, you'll find that it uses a boost.timer to measure the test time. boost::timer.elapsed() returns its result as seconds (double). Finally, boost.test then logs "timer.elapsed() * 1e6" to the boost.test report (i.e. in microseconds).
Generated at Wed May 15 20:00:37 UTC 2024 using JIRA 189.