NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
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)
>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)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 30 22:05:00 +0000 2014
>Originator: Garrett Cooper
>Release: n/a
>Organization:
EMC / Isilon Storage Division
>Environment:
n/a
>Description:
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:
Test case: lib/libc/gen/t_time:time_timeofday
Test program: /var/crash/lib/libc/gen/t_time
Result: failed: time(3) and gettimeofday(2) differ
Duration: 0.093s
Execution context
Metadata
allowed_architectures =
allowed_platforms =
description = Test time(3) vs. gettimeofday(2)
has_cleanup = false
required_configs =
required_files =
required_memory = 0
required_programs =
required_user =
timeout = 300
Standard output
Test case did not write anything to stdout.
Standard error
1414695298 vs. 1414695299
The testcase should have "fuzzing" built in so it allows for a maximum of 1 second difference between the two compared values.
>How-To-Repeat:
>Fix:
Home |
Main Index |
Thread Index |
Old Index