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: Garrett Cooper <yaneurabeya%gmail.com@localhost>
To: Justin Cormack <justin%specialbusservice.com@localhost>
Cc: "gnats-bugs%netbsd.org@localhost" <gnats-bugs%netbsd.org@localhost>,
 "misc-bug-people%netbsd.org@localhost" <misc-bug-people%netbsd.org@localhost>,
 "gnats-admin%netbsd.org@localhost" <gnats-admin%netbsd.org@localhost>,
 "netbsd-bugs%netbsd.org@localhost" <netbsd-bugs%netbsd.org@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 09:23:58 -0700

 > On Oct 31, 2014, at 05:27, Justin Cormack <justin%specialbusservice.com@localhost> w=
 rote:
 >=20
 > 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; compa=
 res set time vs current time (and can vary by a second under rare circumstan=
 ces)
 >=20
 >> 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, th=
 e value returned from time and the tv_sec value can vary between, as noted i=
 n one of our Kyua runs on FreeBSD:
 >=20
 > This should be fixed now. The issues that these clocks are not
 > monotonic are still there, but should generally not be an issue.
 >=20
 > Thanks for the report!
 
 Thank you for the help!=
 


Home | Main Index | Thread Index | Old Index