freebsd-skq/tests/sys
Kyle Evans 0fbdc3726a tests: kqueue: fix some issues with now() on ILP32 platforms
There were ultimately two separate problems here:
- a 32-bit long cannot represent microseconds since 1970 (noted by ian)
- time_t is 32-bit on i386, so now() was wrong anyways even with the correct
  return type.

For the first, just explicitly use a uint64_t for now() and all of the
callers. For the second, we need to explicitly cast tv_sec to uint64_t
before it gets multiplied in the SEC_TO_US macro. Casting this instance
rather than generally in the macro was arbitrarily chosen simply because all
other uses are converting small relative time values.

The tests now pass on i386, at least; presumably other ILP32 will be fine
now as well.
2020-04-20 00:47:28 +00:00
..
acl Set required program for all acl tests 2019-09-05 18:54:46 +00:00
aio lio_listio_empty_nowait_thread sometimes does *not* hang. 2020-01-04 18:59:46 +00:00
audit tests: audit: mark closefrom test an expected fail for now 2020-04-14 23:36:03 +00:00
auditpipe Introduce test program for auditpipe(4) 2018-07-26 00:16:41 +00:00
capsicum Integrate capsicum-test into the FreeBSD test suite 2019-04-01 21:24:50 +00:00
cddl zfs: multiple improvements to the zpool_add tests 2019-10-10 02:17:45 +00:00
common Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths. 2020-03-23 12:21:32 +00:00
devrandom random(4): Fortuna: allow increased concurrency 2019-06-17 20:29:13 +00:00
fifo other: Fix several typos and minor errors 2017-12-27 03:23:58 +00:00
file close_range/closefrom: fix regression from close_range introduction 2020-04-13 17:55:31 +00:00
fs fusefs: avoid cache corruption with buggy fuse servers 2020-03-11 04:29:45 +00:00
geom Temporarily skip sys.geom.class.gate.ggate_test.ggated in CI 2020-03-11 10:42:05 +00:00
kern Add a regression test for the changes in r359922 and r359923. 2020-04-16 20:07:34 +00:00
kqueue tests: kqueue: fix some issues with now() on ILP32 platforms 2020-04-20 00:47:28 +00:00
mac Reduce nc timeout in sys.mac.portacl.* 2020-02-11 20:41:51 +00:00
mqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net bridge tests: Ensure that bridges in different jails get different MAC addresses 2020-04-19 16:30:49 +00:00
netinet carp tests: Basic functionality test 2020-04-12 16:13:05 +00:00
netinet6 Add tests verifying IPv4/IPv6 output for TCP/UDP/raw paths. 2020-03-23 12:21:32 +00:00
netipsec ipsec tests: Skip if ipsec.ko is not loaded 2019-05-16 02:18:57 +00:00
netmap netmap: add test cases for multiple host rings 2019-04-13 12:50:47 +00:00
netpfil Skip sys.netpfil.pf.nat.exhaust on all platforms as it not only fails on amd64 2020-03-13 16:44:48 +00:00
opencrypto Refactor driver and consumer interfaces for OCF (in-kernel crypto). 2020-03-27 18:25:23 +00:00
pjdfstest Tag pjdfstest symlink with pkgbase package 2020-02-12 17:37:32 +00:00
posixshm posixshm: implement posix_fallocate(2) 2020-01-08 19:08:44 +00:00
sys Revert r357246 2020-01-29 22:37:01 +00:00
vfs vfs_lookup: Allow PATH_MAX-1 symlinks 2017-11-17 19:25:39 +00:00
vm Adjust tests after page fault changes in r352807 2019-09-29 15:17:58 +00:00
Makefile tests: Enable net tests 2020-02-13 14:09:09 +00:00
Makefile.depend
Makefile.inc Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that 2017-08-02 22:24:08 +00:00