Enji Cooper
2a1440c618
Diff reduce with upstream by taking diff hunks that were contributed back
2017-01-14 09:38:40 +00:00
Enji Cooper
9f30f6b7c3
Readd the CMSG_DATA for assigning the kqueue... this testcase isn't officially
...
correct yet, but it's getting closer.
2017-01-14 09:25:09 +00:00
Enji Cooper
25785590d5
Remove extra EVSET I added in r312146 by accident
2017-01-14 09:21:36 +00:00
Enji Cooper
a41b7cf58e
Diff reduce with upstream
...
Use CMSG_FIRSTHDR macro to properly link the kqueue to the socket to
get it to now return -1/EBADF with sendmsg per the testcase expectations
2017-01-14 09:20:54 +00:00
Enji Cooper
7bb9bc9cc2
Try to consolidate the #ifdef soup into FreeBSD vs non-FreeBSD blocks better
2017-01-14 08:47:00 +00:00
Enji Cooper
0e6a2253dc
Diff reduce with upstream
2017-01-14 08:39:53 +00:00
Enji Cooper
6e515978dd
Remove comment no longer true since the test no longer bombs out earlier on
2017-01-14 08:38:21 +00:00
Enji Cooper
04f40d86db
Diff reduce with upstream
2017-01-14 08:36:43 +00:00
Enji Cooper
50e474a4f6
:strtold_nan: remove unnecessary strcmp check
...
It gets checked again later on in the testcase
2017-01-14 08:35:29 +00:00
Enji Cooper
1081817ad5
Diff reduce with upstream
2017-01-14 08:12:57 +00:00
Enji Cooper
154be35857
Use copy of sha2.h from libnetbsd
2017-01-14 08:11:17 +00:00
Enji Cooper
c3b0c094b3
libnetbsd: improve sha2.h compat with FreeBSD
...
Add sha384 #include to libnetbsd's copy of sha2.h to expose all of the
SHA384 support via the header.
2017-01-14 08:10:37 +00:00
Enji Cooper
0e3f47800f
Restore deleted line
2017-01-14 07:59:33 +00:00
Enji Cooper
1cb4521644
Diff reduce with upstream using lib/libnetbsd's updated copy of sha1.h
2017-01-14 07:58:40 +00:00
Enji Cooper
59754238a2
libnetbsd: improve sha1.h compat with FreeBSD
...
Map SHA1_CTX to SHA_CTX and SHA1Final to SHA1_Final
2017-01-14 07:57:34 +00:00
Enji Cooper
9a62e988b3
r312133 should have used the non-FreeBSD block
2017-01-14 07:50:29 +00:00
Enji Cooper
4e9c68081e
Diff reduce with upstream by using util.h from libnetbsd instead of libutil.h
2017-01-14 07:48:22 +00:00
Enji Cooper
acf26de3fa
Add stdio.h #include for fparseln
...
fparseln on FreeBSD requires stdio.h, then libutil.h, whereas NetBSD only
requires util.h
2017-01-14 07:46:03 +00:00
Enji Cooper
3b85282333
Diff reduce with upstream
2017-01-14 07:39:07 +00:00
Enji Cooper
88dd6cd01d
Copy ^/vendor/NetBSD/tests/dist/lib/libc/hash/t_hmac.c to
...
contrib/netbsd-tests/lib/libc/hash/t_hmac.c
This was missed in r303980
2017-01-14 07:16:15 +00:00
Enji Cooper
8eace6ac0f
Try again with a better commit message
2017-01-14 07:15:14 +00:00
Enji Cooper
519b4f22b0
Copy ^/vendor/NetBSD/tests/dist to contrib/netbsd-tests
...
This was missed in r303980
2017-01-14 07:14:25 +00:00
Enji Cooper
71164a14d0
Integrate .../contrib/netbsd-tests/usr.bin/uniq into the FreeBSD test
...
suite as .../usr.bin/uniq/tests
Sponsored by: Dell EMC Isilon
2017-01-14 06:51:31 +00:00
Enji Cooper
63d1fd5970
Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123
...
Sponsored by: Dell EMC Isilon
2017-01-14 06:49:17 +00:00
Mateusz Guzik
ed2159c92c
tmpfs: manage tm_pages_used with atomics
...
Reviewed by: kib (previous version)
2017-01-14 06:20:36 +00:00
Enji Cooper
a567518138
Add additional tests missed in previous merges
...
Reminder: use cvs up -APd to pull new directories
2017-01-14 06:18:54 +00:00
Enji Cooper
792bbaba98
Remove contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind
...
This should have been pruned in r305358
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 06:16:57 +00:00
Enji Cooper
dcdb30d8f8
Follow up to r312118
...
State that execve failed instead of just printing out the program name
and strerror(errno) via err(3).
MFC after: 3 days
X-MFC with: r312118
Sponsored by: Dell EMC Isilon
2017-01-14 05:24:35 +00:00
Enji Cooper
f614ceaf4a
Fix warnings
...
- Staticize test_num
- Promote i to size_t to deal with -Wsign-compare issues
Tested with: clang, gcc, gcc49
MFC after: 1 week
Sponsored by: Dell EMC Isilon
2017-01-14 05:18:18 +00:00
Enji Cooper
d467b2ee0c
encode_long, encode_timeval: mechanically replace exp
with exponent
...
This helps fix a -Wshadow issue with exp(3) with tests/sys/acct/acct_test,
which include math.h, which in turn defines exp(3)
MFC after: 2 weeks
Tested with: clang, gcc 4.2.1, gcc 4.9
Sponsored by: Dell EMC Isilon
2017-01-14 05:06:14 +00:00
Enji Cooper
dfa7f3a543
Fix -Wformat issue with zero-length format string passed to err(3)
...
MFC after: 3 days
Tested with: clang, gcc 4.2.1, gcc 4.9
Sponsored by: Dell EMC Isilon
2017-01-14 05:02:53 +00:00
Enji Cooper
bf8f6d7c8d
Remove WARNS set globally by ../Makefile.inc now
...
Sponsored by: Dell EMC Isilon
2017-01-14 04:20:42 +00:00
Enji Cooper
de81acbd15
Enable WARNS?= 6 across all of tests/sys
...
MFC after: 1 week
Sponsored by: Dell EMC Isilon
2017-01-14 04:20:06 +00:00
Enji Cooper
66db8cca1a
Clean up trailing whitespace
...
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 04:16:13 +00:00
Enji Cooper
5e8fcdfe1b
Fix -Wunused on gcc 4.9 (x was set but not used)
...
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 04:13:28 +00:00
Enji Cooper
54ff563fb9
Remove unused vars to fix -Wunused issues
...
MFC after: 3 days
Sponsored by: Dell EMC Isilon
2017-01-14 04:10:04 +00:00
Enji Cooper
5fea45956e
Fix -Wsign-compare warnings
...
The loop index (i) doesn't need to be size_t as its comparison is signed
MFC after: 1 week
Sponsored by: Dell EMC Isilon
2017-01-14 04:09:01 +00:00
Enji Cooper
02820e5e4e
Bump WARNS up to 6 again
...
Has not been tested (can't be after r312103 without cem's hacks
to atf/kyua)!
2017-01-14 04:00:26 +00:00
Enji Cooper
36b9e15c66
Delete trailing whitespace and use __arraycount instead of nitems in contrib code
...
MFC after: 1 week
2017-01-14 03:54:23 +00:00
Conrad Meyer
5c9ce2504a
Follow-up to r312103:
...
Revert r310995 as well.
2017-01-14 02:29:25 +00:00
Enji Cooper
a72f1252fc
Commit more accepted upstream changes from <NetBSD>/tests/...
...
This includes a number of accepted patches for:
- lib/libc/sys
- lib/libm
christos was also nice enough to do the heavy lifting with the h_macros.h
#includes so testcases which use h_macros.h now can work more easily with
the FreeBSD tree's layout for contrib/netbsd-tests vs the testcases.
2017-01-14 02:26:46 +00:00
Enji Cooper
63eca8f1dd
Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS
...
This will allow inetd to stand by itself without libwrap.
MFC after: 2 weeks
Relnotes: yes
Reviewed by: hrs (earlier version)
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9056
2017-01-14 01:37:03 +00:00
Conrad Meyer
4a6ace7328
Fix broken fstyp exfat testcase
...
Introduced in r312010.
It helps to read the documentation before trying to test something.
2017-01-14 01:08:04 +00:00
Conrad Meyer
47f2efe4fb
Revert r310994
...
Don't implement some terrible hack on a test by test basis. The
framework fix is straightforward and can be chased up in the original
bug.
Reviewed by: ngie ("be my guest")
2017-01-14 01:03:20 +00:00
Enji Cooper
a5deb9babb
Note that sys/types.h is required on FreeBSD for kqueue(2), unlike NetBSD
...
MFC after: 12 days
X-MFC with: r305358
Sponsored by: Dell EMC Isilon
2017-01-14 01:01:02 +00:00
Gleb Smirnoff
4fce19da8d
Remove deprecated fgetsock() and fputsock().
2017-01-13 22:16:41 +00:00
John Baldwin
e2c14d90df
Trim a few comments on platforms that did not implement mmap of /dev/kmem.
...
After r307332, no platforms implement mmap for /dev/kmem, so the lack of
it for these platforms is no longer unique.
2017-01-13 21:52:53 +00:00
Warren Block
b44047f3df
Update the shm_open.2 man page to reflect objective reality.
...
PR: 215612
Submitted by: rwatson
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9066
2017-01-13 19:41:02 +00:00
Gleb Smirnoff
f8f24e9ec2
Use getsock_cap() instead of deprecated fgetsock().
...
Reviewed by: Daniel Braniss <danny cs.huji.ac.il>
2017-01-13 18:36:46 +00:00
Ian Lepore
d5b937680c
Correct the comments about how much buffer is allocated.
2017-01-13 17:03:23 +00:00