267 Commits

Author SHA1 Message Date
ngie
ce3bf87904 Drop unnecessary diff rewriting dict(..) function
This is already being properly handled via ATF config require.files call
2017-01-16 07:34:45 +00:00
ngie
730b68b59d Diff reduce with upstream and consolidate #ifdefs where possible 2017-01-15 22:00:59 +00:00
ngie
c835c991a4 Remove libutil.h #include on FreeBSD and instead favor stdio.h from libnetbsd 2017-01-15 21:38:19 +00:00
ngie
8d847934be lib/libc/gen/t_glob.c: diff reduce with NetBSD's copy 2017-01-15 10:17:15 +00:00
ngie
3e48fe15c4 Pull in ^/vendor/NetBSD/tests/dist@r312219
Remove divergence with upstream where possible
2017-01-15 10:04:20 +00:00
ngie
7de155e511 Revert t_pow@r312154
This hunk hasn't been accepted yet
2017-01-14 10:10:49 +00:00
ngie
d5be20c8dc Fix the build using hunks pending upstream contributions 2017-01-14 10:08:22 +00:00
ngie
812b3562ac Diff reduce with upstream post-accepted contributions 2017-01-14 10:05:26 +00:00
ngie
921c5ebfc6 One more sys/types.h kevent clarification missed in r312151 2017-01-14 09:47:06 +00:00
ngie
a16443ef0f Clarify why sys/types.h #include is needed on FreeBSD 2017-01-14 09:45:46 +00:00
ngie
2462f56255 Use cleanup routines to remove POSIX semaphores instead of just blindly
unlinking them at the beginning of the testcase

This is a lot more intelligent in cleaning up the semaphores if the testcase
fails before sem_unlink is called.

Contributed back as bin/51872 upstream.
2017-01-14 09:42:06 +00:00
ngie
c680b35890 Diff reduce with upstream by taking diff hunks that were contributed back 2017-01-14 09:38:40 +00:00
ngie
ae7ce3ee77 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
ngie
8a39cdd5ef Remove extra EVSET I added in r312146 by accident 2017-01-14 09:21:36 +00:00
ngie
490cf9a071 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
ngie
5aa3a5ea8a Try to consolidate the #ifdef soup into FreeBSD vs non-FreeBSD blocks better 2017-01-14 08:47:00 +00:00
ngie
18d5bffd4c Diff reduce with upstream 2017-01-14 08:39:53 +00:00
ngie
4c450d78ab Remove comment no longer true since the test no longer bombs out earlier on 2017-01-14 08:38:21 +00:00
ngie
e01a2989a1 Diff reduce with upstream 2017-01-14 08:36:43 +00:00
ngie
72922ab011 :strtold_nan: remove unnecessary strcmp check
It gets checked again later on in the testcase
2017-01-14 08:35:29 +00:00
ngie
3494b06792 Diff reduce with upstream 2017-01-14 08:12:57 +00:00
ngie
19adf3450d Use copy of sha2.h from libnetbsd 2017-01-14 08:11:17 +00:00
ngie
69d0b79818 Restore deleted line 2017-01-14 07:59:33 +00:00
ngie
130c73622b Diff reduce with upstream using lib/libnetbsd's updated copy of sha1.h 2017-01-14 07:58:40 +00:00
ngie
616cceddc8 r312133 should have used the non-FreeBSD block 2017-01-14 07:50:29 +00:00
ngie
ce00fd0c0c Diff reduce with upstream by using util.h from libnetbsd instead of libutil.h 2017-01-14 07:48:22 +00:00
ngie
fb15e0f3f2 Diff reduce with upstream 2017-01-14 07:39:07 +00:00
ngie
ff56c22837 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
ngie
aa72771260 Try again with a better commit message 2017-01-14 07:15:14 +00:00
ngie
402a9a2b61 Copy ^/vendor/NetBSD/tests/dist to contrib/netbsd-tests
This was missed in r303980
2017-01-14 07:14:25 +00:00
ngie
df753889a0 Merge content currently under test from ^/vendor/NetBSD/tests/dist/@r312123
Sponsored by:	Dell EMC Isilon
2017-01-14 06:49:17 +00:00
ngie
962bf8e3c1 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
ngie
4d5319ac7b Delete trailing whitespace and use __arraycount instead of nitems in contrib code
MFC after:	1 week
2017-01-14 03:54:23 +00:00
ngie
13c3aaf130 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
ngie
267c549853 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
ngie
f418f34d66 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
ngie
5e7a3f84d0 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
ngie
08248311c6 Consolidate __NetBSD__ #ifdef
MFC after:	3 days
2017-01-11 10:20:35 +00:00
ngie
9ccf281c9a 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
ngie
e76e830976 Fix whitespace in comment
MFC after:	3 days
2017-01-11 09:34:42 +00:00
ngie
8e4774a74f 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
ngie
f175bbf193 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
ngie
156d81e0b8 Diff reduce with upstream by removing signal.h #include
MFC after:	3 days
2017-01-10 10:27:09 +00:00
ngie
235523d6d0 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
ngie
84e8df6759 Merge the grammar fix for lib/libc/gen/raise_test:raise_stress
MFC after:	3 days
2017-01-10 10:12:36 +00:00
ngie
19b32b04f2 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
ngie
c7069bcc3c 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
ngie
ac7c638e4b 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
ngie
616267f093 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
ngie
c3092fd7a3 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