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
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
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
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
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
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
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
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
Enji Cooper
cdebaff820
Upgrade NetBSD tests to 01.11.2017_23.20 snapshot
...
This contains some new testcases in /usr/tests/...:
- .../lib/libc
- .../lib/libthr
- .../lib/msun
- .../sys/kern
Tested on: amd64, i386
MFC after: 1 month
2017-01-13 03:33:57 +00:00
Enji Cooper
9527fa4f66
Remove __HAVE_LONG_DOUBLE #define from t_strtod.c and place it in Makefile
...
This is to enable support in other testcases
Inspired by lib/msun/tests/Makefile .
MFC after: 1 week
2017-01-12 08:40:52 +00:00
Enji Cooper
35cfc322f1
Fix lib/libc/sys/access_test after r311925
...
sys/param.h needs to be #included in order for __FreeBSD_version to be checked
MFC after: 13 days
2017-01-12 08:31:42 +00:00
Enji Cooper
bccef7f6d9
Consolidate __NetBSD__ #ifdef
...
MFC after: 3 days
2017-01-11 10:20:35 +00:00
Enji Cooper
ddba0402f4
Import testcase updates with code contributed back to NetBSD
...
This also (inadvertently) contains an update to
contrib/netbsd-tests/lib/libc/sys/t_wait.c (new testcases).
MFC after: 2 weeks
In collaboration with: christos@NetBSD.org
2017-01-11 09:51:34 +00:00
Enji Cooper
d1a6b5fb2f
Fix whitespace in comment
...
MFC after: 3 days
2017-01-11 09:34:42 +00:00
Enji Cooper
0e0dd02306
Partially revert r311236
...
There's no sense in trying to close a file descriptor from the negative cases
with unlink_test; it's best to ignore these cases.
The mkfifo case does make sense to keep though.
MFC after: 3 days
2017-01-11 07:22:21 +00:00
Enji Cooper
19f27f3c34
Fix up r311227
...
Check for creat returning a value != -1, not a non-zero value
MFC after: 3 days
Pointyhat to: ngie
Reported by: Coverity
CID: 1368366
2017-01-11 07:17:03 +00:00
Enji Cooper
7931520d40
Diff reduce with upstream by removing signal.h #include
...
MFC after: 3 days
2017-01-10 10:27:09 +00:00
Enji Cooper
b6a72c5dbe
Merge ^/vendor/NetBSD/tests/dist@r311868
...
This is the vendor accepted version of ^/head@r311245
MFC after: 3 days
2017-01-10 10:16:59 +00:00
Enji Cooper
2bbc0fe246
Merge the grammar fix for lib/libc/gen/raise_test:raise_stress
...
MFC after: 3 days
2017-01-10 10:12:36 +00:00
Enji Cooper
20a4ce8bf2
Redo fix for CID 979581
...
The previous change was flawed in terms of how it calculated the
buffer length for the sockaddr_un object. Use SUN_LEN where
appropriate and mute the Coverity complaint by using memset(.., 0, ..)
to zero out the entire structure instead of setting .sun_len to a bogus
value and strlcpy'ing in the contents of argv[1].
SUN_LEN is now being passed to bind(2) as well. For some odd reason
this wasn't flagged as a bug with Coverity.
Reported by: jilles, jmallett
MFC after: 2 days
X-MFC with: r311233
2017-01-05 07:46:57 +00:00
Enji Cooper
d6766132c2
run: ensure pthread_condattr_{init,setclock} is successful
...
MFC after: 1 week
Reported by: Coverity
CID: 1268631, 1268633
2017-01-04 09:06:49 +00:00
Enji Cooper
dca7cc9815
setrlimit_basic: don't leak buf; free it on completion
...
MFC after: 3 days
Reported by: Coverity
CID: 978311
2017-01-04 09:00:16 +00:00
Enji Cooper
fcc9604d43
revoke_perm: don't leak fd at the end of the test; close it
...
This code is unused on FreeBSD, but it mutes a valid Coverity warning
which would be true on NetBSD
MFC after: 3 days
Reported by: Coverity
CID: 978311
2017-01-04 08:59:06 +00:00
Enji Cooper
621b0f13af
stat_symlink: don't leak fd; close the file descriptor when done
...
MFC after: 3 days
Reported by: Coverity
CID: 978314
2017-01-04 08:49:07 +00:00
Enji Cooper
c0b11b8e04
pipe_restart: free f on function exit to quell complaint from Coverity
...
MFC after: 3 days
Reported by: Coverity
CID: 978307
2017-01-04 08:43:27 +00:00
Enji Cooper
64af3fbaba
swapcontext1: test for getcontext(3) and swapcontext(3) success properly
...
The beforementioned libcalls both succeed if the return codes aren't -1
MFC after: 3 days
Reported by: Coverity
CID: 976790, 976791
2017-01-04 08:35:46 +00:00
Enji Cooper
7251167f52
Clarify lifetime of child(..) function
...
Ensure child exits when complete as it's always run in a forked
process.
Add a missing break statement in :pselect_sigmask when calling
child(..) for clarity and to avoid weird domino effects if the
child process somehow does something it's not supposed to do
with the logfiles, file descriptors, etc
MFC after: 1 week
Reported by: Coverity
CID: 1223369, 1223370, 1300301
2017-01-04 08:25:31 +00:00
Enji Cooper
17a0c1eb75
fpu: ensure calls to pthread_create succeed and test sched_yield to make
...
sure it returns 0
sched_yield tests for values returning 0 of type int and sched_yield is
of type long, so the test is a mismatch
MFC after: 1 week
Reported by: Coverity
CID: 1254953, 1254954, 1254965, 1254966
2017-01-04 08:07:48 +00:00
Enji Cooper
b5bbd2a17c
mincore_resid: free buf after use
...
MFC after: 3 days
Reported by: Coverity
CID: 978304
2017-01-04 04:55:33 +00:00
Enji Cooper
83e8b13f15
{strchr,strlen}_basic: don't leak the dlopen'ed handle; close after use
...
MFC after: 3 days
Reported by: Coverity
CID: 978299, 978300
2017-01-04 04:50:03 +00:00
Enji Cooper
5d37d9cc25
mknodat_fd: close dfd after use to avoid leaking it
...
MFC after: 3 days
Reported by: Coverity
CID: 978287
2017-01-04 04:32:00 +00:00
Enji Cooper
f4cbf11049
mkfifoat_fd: close dfd after use to avoid leaking it
...
MFC after: 3 days
Reported by: Coverity
CID: 978286
2017-01-04 04:29:53 +00:00
Enji Cooper
5641f109c1
fexecve: don't leak fd on fexecve(2) failure; close before calling err
...
MFC after: 3 days
Reported by: Coverity
CID: 978285
2017-01-04 04:27:13 +00:00
Enji Cooper
3b33767589
tty: don't leak s after opening it with openpty
...
MFC after: 3 days
Reported by: Coverity
CID: 978321
2017-01-04 04:19:05 +00:00
Enji Cooper
57f5b7d843
mmap_prot_3, mmap_truncate, mmap_truncate_signal: don't leak fd and map
...
Reported by: Coverity
CID: 978306, 1251406, 1288196, 1300541
2017-01-04 04:10:36 +00:00