This is the mail archive of the
ecos-bugs@sources.redhat.com
mailing list for the eCos project.
[Bug 1000115] New: wallclock test flawed
- From: bugzilla at ecoscentric dot com
- To: ecos-bugs at sources dot redhat dot com
- Date: Sat, 28 Aug 2004 07:45:11 +0100 (BST)
- Subject: [Bug 1000115] New: wallclock test flawed
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000115
Summary: wallclock test flawed
Product: eCos
Version: CVS
Platform: All
OS/Version: All
Status: NEW
Severity: minor
Priority: FYI
Component: Wallclock
AssignedTo: jifl@ecoscentric.com
ReportedBy: jifl@ecoscentric.com
QAContact: ecos-bugs@sources.redhat.com
The wallclock test in io/wallclock/current/tests/wallclock.cxx is flawed as it
doesn't allow for potential clock skew between the kernel clock and the
wallclock. If there are kernel RTC ticks between
ticks = Cyg_Clock::real_time_clock->current_value();
and
ticks = Cyg_Clock::real_time_clock->current_value() - ticks;
there is no guarantee that number of ticks will be consistent. It could easily
happen to fall +/- 1. However the comparison against the wallclock is precise
with no tolerance for this.
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.