This is the mail archive of the ecos-bugs@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]