NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: misc/49342: [test] lib/libc/gen/t_time.c is non-deterministic; compares set time vs current time (and can vary by a second under rare circumstances)



The following reply was made to PR misc/49342; it has been noted by GNATS.

From: Justin Cormack <justin%specialbusservice.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: misc-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost, 
	yaneurabeya%gmail.com@localhost
Subject: Re: misc/49342: [test] lib/libc/gen/t_time.c is non-deterministic;
 compares set time vs current time (and can vary by a second under rare circumstances)
Date: Fri, 31 Oct 2014 12:27:15 +0000

 On Thu, Oct 30, 2014 at 10:05 PM,  <yaneurabeya%gmail.com@localhost> wrote:
 >>Number:         49342
 >>Category:       misc
 >>Synopsis:       [test] lib/libc/gen/t_time.c is non-deterministic; compares set time vs current time (and can vary by a second under rare circumstances)
 
 > The lib/libc/gen/t_time:time_timeofday testcase works in most cases, but
 > if the clock rolls over between when time and gettimeofday are called, the value returned from time and the tv_sec value can vary between, as noted in one of our Kyua runs on FreeBSD:
 
 This should be fixed now. The issues that these clocks are not
 monotonic are still there, but should generally not be an issue.
 
 Thanks for the report!
 
 Justin
 


Home | Main Index | Thread Index | Old Index