opnsense-src/contrib/netbsd-tests/lib/libc
Bryan Drewery 70c144dc78 nanosleep(2): Fix bogus incrementing of rmtp by tc_tick_sbt on [EINTR].
sbt is the time in the future that the tsleep_sbt() is expected to be completed
at.  sbtt is the current time.  Depending on the precision with sysctl
kern.timecounter.alloweddeviation the start time may be incremented by
tc_tick_sbt.  The same increment is needed for the current time of sbtt before
calculating the difference.  The impact of missing this increment is that rmtp
may increase by one tc_tick_sbt on every early [EINTR] return.  If the same
struct is passed in for rqtp as rmtp this can result in rqtp effectively
incrementing by tc_tick_sbt and sleeping longer than originally intended.

This problem was introduced in r247797.

Reviewed by:	kib, markj, vangyzen (all on an older version of the test)
MFC after:	2 weeks
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D14362
2018-02-14 18:43:50 +00:00
..
arch Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
c063 Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
common
db Drop unnecessary diff rewriting dict(..) function 2017-01-16 07:34:45 +00:00
gen o Replace __riscv__ with __riscv 2017-08-07 14:09:57 +00:00
hash Use copy of sha2.h from libnetbsd 2017-01-14 08:11:17 +00:00
inet Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
locale Remove all expected failures from lib/libc/locale/io_test for FreeBSD 2017-03-20 03:52:06 +00:00
net Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
regex regex(3): Handle invalid {} constructs consistently and adjust tests 2017-08-08 04:10:46 +00:00
rpc Remove expected failure now that it was fixed in r317660. 2017-05-02 22:14:55 +00:00
setjmp Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
ssp Fix up previous commit 2017-05-12 05:17:49 +00:00
stdio :snprintf_float: don't blindly set RLIMIT_DATA and RLIMIT_AS to 1 MB -- raise 2017-07-06 07:59:00 +00:00
stdlib Add additional __FreeBSD_version guards around the hsearch_r testcases 2017-03-01 03:31:12 +00:00
string Pull in ^/vendor/NetBSD/tests/dist@r312219 2017-01-15 10:04:20 +00:00
sync Upgrade NetBSD tests to 01.11.2017_23.20 snapshot 2017-01-13 03:33:57 +00:00
sys nanosleep(2): Fix bogus incrementing of rmtp by tc_tick_sbt on [EINTR]. 2018-02-14 18:43:50 +00:00
termios
time Checkpoint initial integration work 2016-08-12 08:50:05 +00:00
tls Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with 2014-11-17 13:39:00 +00:00
tls_dso Mechanically replace #if defined(__FreeBSD__) and #if defined(__NetBSD__) with 2014-11-17 13:39:00 +00:00
ttyio Merge ^/vendor/NetBSD/tests/dist@r311868 2017-01-10 10:16:59 +00:00
t_cdb.c Import testcase updates with code contributed back to NetBSD 2017-01-11 09:51:34 +00:00
t_convfp.c
t_gdtoa.c