History log of /freebsd-10-stable/lib/libc/tests/
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
337491 08-Aug-2018 bdrewery

MFC r321333:

Properly set userid for truncate_test.

324505 10-Oct-2017 pfg

MFC r322368, r322371:
fnmatch(3): improve POSIX conformance.

In a recent interpretation[1], "\\" shall return a non-zero value
(indicating either no match or an error).

The fix involves a change over r254091 and now the behavior matches the
Sun/IBM/HP closed source implementations and also likely musl libc.

Submitted by: Joerg Schilling <joerg at schily.net>

[1] http://austingroupbugs.net/view.php?id=806

321878 01-Aug-2017 asomers

MFC r320737, r320914

r320737:
Fix cleanup in lib/libc/gen/setdomainname_test

ATF cleanup routines run in separate processes from the tests themselves, so
they can't share global variables.

Also, setdomainname_test needs to be is_exclusive because the test cases
access a global resource.

PR: 219967
Reviewed by: ngie
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D11188

r320914:
Remove an extraneous strlen from t_setdomainname.c

Reported by: Coverity
CID: 1377568
X-MFC-With: 320737
Sponsored by: Spectra Logic Corp

321144 18-Jul-2017 ngie

MFC r319048,r319049,r319051,r319054:

r319048:

Push `snapshot_file` copying down into run_tests function, and mark snapshot_file
const char *.

This fixes a bogus set of errors from gcc about strdup not being allowed a NULL
argument.

r319049:

Bump WARNS from 1 to 3 after recent commits to fix warnings in the
directory.

Tested with: clang 4.0, gcc 4.2.1, gcc 6.3.0

r319051:

hostent_test_getnameinfo_eq(..): initialize found_a_host to false

CID: 1368943

r319054:

hostent_test_getaddrinfo_eq(..): call freeaddrinfo on `ai` when done

This plugs a leak of memory allocated via getaddrinfo.

CID: 1346866

319419 01-Jun-2017 kib

MFC r318450:
Add tests for some cases in r318298.

PR: 219154

319298 31-May-2017 ngie

MFC r319027,r319028,r319029,r319030,r319031,r319033,r319034,r319035,r319036,r319037,r319038,r319039,r319040,r319041,r319042,r319043,r319044,r319045,r319046:

r319027:

lib/libc/tests/nss: use calloc appropriately

The pattern used prior to this commit was `calloc(1, n * sizeof(type))`;
the pattern that should be used however is `calloc(n, sizeof(type))`.

r319028:

Sort make variables to suit style.Makefile(5)

This is being done prior to functional changes.

r319029:

Staticize functions and remove unused variables to aid with bumping WARNS

r319030:

Fix -Wsign-compare warnings

r319031:

getusershell_test: staticize run_tests(..) to fix warnings

r319033:

getserv_test: fix -Wsign-compare and -Wmissing-prototypes warnings

r319034:

getaddrinfo_test: fix -Wsign-compare warnings

r319035:

getrpc_test: fix -Wmissing-prototypes and -Wsign-compare warnings

r319036:

getproto_test: fix -Wmissing-prototypes and -Wsign-compare warnings

r319037:

getaddrinfo_test: mark unused function parameters __unused to fix -Wunused
warnings

r319038:

getusershell_test: mark mdata parameter in compare_usershell __unused

r319039:

getserv_test: mark unused parameters __unused to fix corresponding
warnings

r319040:

getrpc_test: fix -Wunused warnings

- Mark unused function parameters unused.
- Remove an unused function prototype.

r319041:

getproto_test: fix -Wunused warnings

Mark unused parameters __unused in functions.

r319042:

gethostby_test: fix multiple warning types

- Fix -Wmissing-declaration warning by staticizing run_tests.
- Fix -Wsign-compare warnings by casting size_t types to int
for comparisons.

Reindent some of the code in sdump_hostent(..) to accomodate the
overall changes.

r319043:

getpw_test: fix -Wunused warnings

- Mark unused parameters __unused.
- Put dump_passwd under DEBUG as it's only used in that case.

r319044:

getgr_test: fix -Wunused warnings

r319045:

Fix -Wunused and -Wshadow warnings

r319046:

Fix a -Wunused-but-set-variable warning reported by gcc 6.3.0

319252 30-May-2017 asomers

MFC r315032-r315036, r315039, r315041

r315032:
Increase WARNS for iconv tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

r315033:
Increase WARNS for nss tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

r315034:
Document that the msun tests require WARNS=0

ATF tests have a default WARNS of 0, unlike other usermode programs. This
change is technically a noop, but it documents that the msun tests don't
work with any warnings enabled, at least not on all architectures.

Reviewed by: ngie
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

r315035:
Increase WARNS for libcrypt tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie, julian
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

r315036:
Increase WARNS for libmp tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie, julian
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

r315039:
Increase WARNS for libutil tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie, julian
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

r315041:
Increase WARNS for pw tests

ATF tests have a default WARNS of 0, unlike other usermode programs.

Reviewed by: ngie, julian
Sponsored by: Spectra Logic Corporation
Differential Revision: https://reviews.freebsd.org/D9933

315358 16-Mar-2017 ngie

MFC r314954:

style(9): sort the #includes

315185 13-Mar-2017 ngie

MFC r314807:

Move ATF_TC_WITHOUT_HEAD(getgrent) near the testcase it annotates

314817 07-Mar-2017 ngie

MFC r314450,r313439:

r314450:

Add additional __FreeBSD_version guards around the hsearch_r testcases

The reasoning for this is the same as r276046: to ease MFCing the tests
to ^/stable/10 .

This was accidentally missed in r313439

r313439 | ngie | 2017-02-08 01:46:15 -0800 (Wed, 08 Feb 2017) | 25 lines

Merge content from ^/projects/netbsd-tests-upstream-01-2017 into ^/head

The primary end-goal of this drop is ease future merges with NetBSD and
collaborate further with the NetBSD project.

The goal was (largely, not completely as some items are still oustanding
in the NetBSD GNATS system) achieved by doing the following:
- Pushing as many changes required to port contrib/netbsd-tests
back to NetBSD as possible, then pull the upstream applied changes
back in to FreeBSD.
- Diff reduce with upstream where possible by:
-- Improving libnetbsd header, etc compat glue.
-- Using _SED variables to modify test scripts on the fly for items
that could not be upstreamed to NetBSD.

As a bonus for this work, this change also introduces testcases for
uniq(1).

Many thanks to Christos for working with me to get many of the changes
back into the NetBSD project.

In collaboration with: Christos Zoulas <christos@netbsd.org>


/freebsd-10-stable/contrib/netbsd-tests/dev/audio/t_pad_output.bz2.uue
/freebsd-10-stable/contrib/netbsd-tests/dev/cgd/t_cgd_3des.c
/freebsd-10-stable/contrib/netbsd-tests/dev/cgd/t_cgd_aes.c
/freebsd-10-stable/contrib/netbsd-tests/dev/cgd/t_cgd_blowfish.c
/freebsd-10-stable/contrib/netbsd-tests/dev/clock_subr
/freebsd-10-stable/contrib/netbsd-tests/dev/scsipi/t_cd.c
/freebsd-10-stable/contrib/netbsd-tests/dev/sysmon/t_swwdog.c
/freebsd-10-stable/contrib/netbsd-tests/fs/common/h_fsmacros.h
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/h_quota2_tests.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_fifos.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_mount.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_quota2_1.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_quota2_remount.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_snapshot.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_snapshot_log.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/t_snapshot_v2.c
/freebsd-10-stable/contrib/netbsd-tests/fs/hfs/t_pathconvert.c
/freebsd-10-stable/contrib/netbsd-tests/fs/kernfs/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/fs/lfs/t_pr.c
/freebsd-10-stable/contrib/netbsd-tests/fs/msdosfs/t_snapshot.c
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/t_mountd.c
/freebsd-10-stable/contrib/netbsd-tests/fs/nullfs/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ptyfs/t_nullpts.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ptyfs/t_ptyfs.c
/freebsd-10-stable/contrib/netbsd-tests/fs/puffs/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/fs/puffs/t_fuzz.c
/freebsd-10-stable/contrib/netbsd-tests/fs/puffs/t_io.c
/freebsd-10-stable/contrib/netbsd-tests/fs/tmpfs/t_mknod.sh
/freebsd-10-stable/contrib/netbsd-tests/fs/tmpfs/t_readdir.sh
/freebsd-10-stable/contrib/netbsd-tests/fs/tmpfs/t_renamerace.c
/freebsd-10-stable/contrib/netbsd-tests/fs/umapfs/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/fs/union/t_pr.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_full.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_io.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_mtime_otrunc.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_renamerace.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_ro.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_rwtoro.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_union.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_unpriv.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_vfsops.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_vnops.c
/freebsd-10-stable/contrib/netbsd-tests/include/sys/t_socket.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/arch
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/t_fifo.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/t_file.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/t_file2.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/t_pipe.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/read/t_ttypty.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_ioctl.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_proc1.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_proc2.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_proc3.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_sig.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_vnode.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/write/t_fifo.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/write/t_pipe.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/write/t_ttypty.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_extent.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_filedesc.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_lock.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_mqueue.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_wait.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_pty.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_rnd.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_mkfifoat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/t_db.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/exect
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_spawnattr.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_glob.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_sleep.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/hash/h_hash.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/hash/t_hmac.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/hash/t_sha2.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/locale/t_io.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/regex/debug.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/regex/t_exhaust.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/regex/t_regex_att.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/setjmp/t_setjmp.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/setjmp/t_threadjmp.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/ssp/h_memset.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/ssp/h_read.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_hsearch.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/t_strlen.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_clock_gettime.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_connect.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_dup.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_kevent.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_link.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_listen.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mincore.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mlock.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mmap.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_msgctl.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_msgrcv.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_msgsnd.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_msync.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_nanosleep.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_pipe.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_pipe2.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_posix_fadvise.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_revoke.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_select.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_sigaction.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_sigqueue.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_socketpair.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_stat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_timer_create.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_truncate.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_umask.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_unlink.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_wait.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_wait_noproc.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_write.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_ilogb.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_pow.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_precision.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_scalbn.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libposix/t_rename.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/h_common.h
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_condwait.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_detach.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_fork.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_fpu.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_join.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_mutex.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_once.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_sem.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_swapcontext.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread_dbg
/freebsd-10-stable/contrib/netbsd-tests/lib/librefuse
/freebsd-10-stable/contrib/netbsd-tests/lib/librt/t_sem.c
/freebsd-10-stable/contrib/netbsd-tests/lib/librumpclient/t_fd.c
/freebsd-10-stable/contrib/netbsd-tests/lib/semaphore/sem.c
/freebsd-10-stable/contrib/netbsd-tests/libexec/ld.elf_so/t_dlerror-cleared.c
/freebsd-10-stable/contrib/netbsd-tests/libexec/ld.elf_so/t_dlerror-false.c
/freebsd-10-stable/contrib/netbsd-tests/libexec/ld.elf_so/t_dlinfo.c
/freebsd-10-stable/contrib/netbsd-tests/libexec/ld.elf_so/t_ifunc.c
/freebsd-10-stable/contrib/netbsd-tests/modules/t_builtin.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpf/t_bpf.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpf/t_mbuf.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpfilter/t_bpfilter.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpfjit/t_bpfjit.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpfjit/t_cop.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpfjit/t_extmem.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpfjit/t_mbuf.c
/freebsd-10-stable/contrib/netbsd-tests/net/carp/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/net/carp/t_basic.sh
/freebsd-10-stable/contrib/netbsd-tests/net/config/netconfig.c
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_forward.c
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_ping.c
/freebsd-10-stable/contrib/netbsd-tests/net/if/t_ifconfig.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_loop/t_pr.c
/freebsd-10-stable/contrib/netbsd-tests/net/if_tun
/freebsd-10-stable/contrib/netbsd-tests/net/if_vlan
/freebsd-10-stable/contrib/netbsd-tests/net/ndp/t_ra.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_raw.c
/freebsd-10-stable/contrib/netbsd-tests/rump/modautoload/t_modautoload.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_kern.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_lwproc.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_modcmd.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_modlinkset.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_signals.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_threads.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_tsleep.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_vm.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpvfs/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpvfs/t_etfs.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpvfs/t_p2kifs.c
/freebsd-10-stable/contrib/netbsd-tests/sys/uvm
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/mixerctl
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/uniq
/freebsd-10-stable/contrib/netbsd-tests/usr.sbin/mtree/t_mtree.sh
/freebsd-10-stable/etc/mtree/BSD.tests.dist
hash/Makefile
regex/Makefile
/freebsd-10-stable/tests/sys/fs/tmpfs/Makefile
/freebsd-10-stable/usr.bin/uniq/Makefile
/freebsd-10-stable/usr.bin/uniq/tests
/freebsd-10-stable/usr.bin/uniq/tests/Makefile
313723 14-Feb-2017 ngie

MFC r313378,r313379:

r313378:

Wrap strcmp/wcscmp calls with ATF_CHECK_MSG and drop atf_tc_fail use

The reasoning here was the same as what was done in r313376:
- Gather as many results as possible instead of failing early and
not testing the rest of the cases.
- Simplify logic when checking test inputs vs outputs and printing
test result.

r313379:

Expect :int_within_limits to fail when ptrdiff_t/*intmax_t differ in base type

The %t{d,u} (ptrdiff_t) tests fail for the following reasons:
- ptrdiff_t is by definition int32_t on !LP64 architectures and int64_t on
LP64 architectures.
- intmax_t is by definition fixed to int64_t on all architectures.
- Some of the code in lib/libc/stdio/... is promoting ptrdiff_t to *intmax_t
when parsing/representing the value.

PR: 191674

313720 14-Feb-2017 ngie

MFC r313376:

Fix :hexadecimal_floating_point on i386

Don't exclude i386 from LDBL_MANT_DIG == 64; it works properly in
that case.

While here, replace strcmp + atf_tc_fail with ATF_CHECK_MSG for 2
reasons:
- Gather as many results as possible instead of failing early and
not testing the rest of the cases.
- Simplify logic when checking test inputs vs outputs and printing
test result.

Tested on: amd64, i386

313535 10-Feb-2017 ngie

MFC r311925,r311968,r311969,r312008:

r311925:

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).

In collaboration with: christos@NetBSD.org

r311968:

Fix lib/libc/sys/access_test after r311925

sys/param.h needs to be #included in order for __FreeBSD_version to be checked

r311969:

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 .

r312008:

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


/freebsd-10-stable/contrib/netbsd-tests/crypto/libcrypto/t_libcrypto.sh
/freebsd-10-stable/contrib/netbsd-tests/crypto/libcrypto/t_pubkey.sh
/freebsd-10-stable/contrib/netbsd-tests/dev/audio/h_pad.c
/freebsd-10-stable/contrib/netbsd-tests/dev/audio/t_pad_output.bz2.uue
/freebsd-10-stable/contrib/netbsd-tests/dev/cgd/t_cgd_3des.c
/freebsd-10-stable/contrib/netbsd-tests/dev/cgd/t_cgd_aes.c
/freebsd-10-stable/contrib/netbsd-tests/dev/cgd/t_cgd_blowfish.c
/freebsd-10-stable/contrib/netbsd-tests/fs/ffs/ffs_common.sh
/freebsd-10-stable/contrib/netbsd-tests/fs/fifofs/t_fifo.c
/freebsd-10-stable/contrib/netbsd-tests/fs/psshfs/t_psshfs.sh
/freebsd-10-stable/contrib/netbsd-tests/fs/puffs/t_basic.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_vnops.c
/freebsd-10-stable/contrib/netbsd-tests/h_macros.h
/freebsd-10-stable/contrib/netbsd-tests/kernel/msg.h
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_mqueue.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_wait.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_wait.h
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_wait3.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_wait4.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_wait6.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_waitid.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_ptrace_waitpid.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/arch/sparc64/exec_prot_support.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/arch/sparc64/return_one.S
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_faccessat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_fchmodat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_fchownat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_fexecve.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_fstatat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_mkfifoat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_mknodat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_o_search.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_openat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_readlinkat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_unlinkat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/c063/t_utimensat.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/h_db.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/t_db.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_assert.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_dir.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_fnmatch.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_ftok.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_humanize_number.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_sleep.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_time.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_ttyname.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_vis.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/t_memcpy.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/t_memmem.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/t_strchr.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/t_strerror.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sync/cpp_atomic_ops_linkable.cc
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_access.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_chroot.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_clock_nanosleep.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mincore.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mmap.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_wait.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_wait_noproc.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_wait_noproc_wnohang.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/t_cdb.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_casinh.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_fe_round.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_ilogb.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_ldexp.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_precision.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/h_common.h
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_mutex.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_timedmutex.c
/freebsd-10-stable/contrib/netbsd-tests/lib/librumpclient/h_execthr.c
/freebsd-10-stable/contrib/netbsd-tests/lib/librumphijack/t_tcpip.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/libusbhid/t_usbhid.c
/freebsd-10-stable/contrib/netbsd-tests/net/arp/t_arp.sh
/freebsd-10-stable/contrib/netbsd-tests/net/arp/t_dad.sh
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_icmp6_redirect.sh
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_icmp_redirect.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if/t_compat.c
/freebsd-10-stable/contrib/netbsd-tests/net/if/t_ifconfig.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_bridge/t_bridge.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_gif/t_gif.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_pppoe/t_pppoe.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_tap/t_tap.sh
/freebsd-10-stable/contrib/netbsd-tests/net/mcast/t_mcast.sh
/freebsd-10-stable/contrib/netbsd-tests/net/ndp/t_dad.sh
/freebsd-10-stable/contrib/netbsd-tests/net/ndp/t_ndp.sh
/freebsd-10-stable/contrib/netbsd-tests/net/ndp/t_ra.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_forwarding.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ipaddress.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ipv6_lifetime.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ipv6address.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_mtudisc.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_mtudisc6.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ping6_opts.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net_common.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_change.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_flags.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_flags6.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_route.sh
/freebsd-10-stable/contrib/netbsd-tests/rump/modautoload/t_modautoload.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_lwproc.c
/freebsd-10-stable/contrib/netbsd-tests/sys/net/t_print.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/config/t_config.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/netpgpverify/t_netpgpverify.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_anon_union.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_union_cast.c
db/Makefile
gen/Makefile
stdlib/Makefile
sys/Makefile
/freebsd-10-stable/lib/libthr/tests/Makefile
/freebsd-10-stable/lib/msun/tests/Makefile
313517 10-Feb-2017 ngie

MFC r309373:
r309373 (by bdrewery):

Fix setrlimit_test:setrlimit_memlock when the system has exceeded vm.max_wired.

This uses the same fix as r294894 did for the mlock test. The code from
that commit is moved into a common object file which PROGS supports
building first.

313498 10-Feb-2017 ngie

MFC r305358,r305449,r305451,r306367,r306397,r309474:

This also contains a merge of ^/projects/netbsd-tests-update-12@r304035 .
This change never hit ^/head because bin/cat's behavior was changed (on ^/head)
to match NetBSD.

PR: 210607

r305358:

Update contrib/netbsd-tests with new content from NetBSD

This updates the snapshot from 09/30/2014 to 08/11/2016

This brings in a number of new testcases from upstream, most
notably:

- bin/cat
- lib/libc
- lib/msun
- lib/libthr
- usr.bin/sort

lib/libc/tests/stdio/open_memstream_test.c was moved to
lib/libc/tests/stdio/open_memstream2_test.c to accomodate
the new open_memstream test from NetBSD.

Tested on: amd64 (VMware fusion VM; various bare metal platforms); i386 (VMware fusion VM); make tinderbox

r305449:

Install h_db to unbreak some of the lib/libc/db testcases after
r305358

r305451:

Fix lib/libc/rpc test assumptions added in r305358

- Require root in the tcp/udp subtests (it's needed on FreeBSD when
registering services).
- Skip the tests if service registration fails.

r306367 (by br):

Allow up to 6 arguments only on MIPS.

r306397 (by br):

Use right piece of code for FreeBSD.

r309474:

Don't build :strvis_locale if VIS_NOLOCALE is undefined

The copy of contrib/libc-vis on ^/stable/10 doesn't contain all of the features
in the ^/stable/11 // ^/head version, including VIS_NOLOCALE. The risk is lower
in conditionally running the test instead of backporting the newer version of
libc-vis


/freebsd-10-stable/bin/cat/tests/Makefile
/freebsd-10-stable/contrib/netbsd-tests/bin/cat/d_align.in
/freebsd-10-stable/contrib/netbsd-tests/bin/cat/d_align.out
/freebsd-10-stable/contrib/netbsd-tests/bin/cat/d_se_output.in
/freebsd-10-stable/contrib/netbsd-tests/bin/cat/d_se_output.out
/freebsd-10-stable/contrib/netbsd-tests/bin/cat/t_cat.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/dotcmd/scoped_command
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/dotcmd/t_dotcmd.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_arith.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_cmdsub.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_compexit.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_evaltested.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_exit.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_expand.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_fsplit.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_here.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_option.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_redir.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_redircloexec.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_set_e.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_shift.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_ulimit.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_varquote.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_varval.sh
/freebsd-10-stable/contrib/netbsd-tests/bin/sh/t_wait.sh
/freebsd-10-stable/contrib/netbsd-tests/crypto/opencrypto/t_opencrypto.sh
/freebsd-10-stable/contrib/netbsd-tests/dev/audio/t_pad_output.bz2.uue
/freebsd-10-stable/contrib/netbsd-tests/dev/dm/h_dm.c
/freebsd-10-stable/contrib/netbsd-tests/dev/fss
/freebsd-10-stable/contrib/netbsd-tests/dev/sysmon/t_swsensor.sh
/freebsd-10-stable/contrib/netbsd-tests/dev/sysmon/t_swwdog.c
/freebsd-10-stable/contrib/netbsd-tests/dev/usb
/freebsd-10-stable/contrib/netbsd-tests/fs/common/fstest_lfs.c
/freebsd-10-stable/contrib/netbsd-tests/fs/common/h_fsmacros.h
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/nfsservice/mountd.c
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/nfsservice/nfsd.c
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/nfsservice/rumpnfsd.c
/freebsd-10-stable/contrib/netbsd-tests/fs/nfs/t_rquotad.sh
/freebsd-10-stable/contrib/netbsd-tests/fs/tmpfs/t_vnd.sh
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_io.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_renamerace.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_unpriv.c
/freebsd-10-stable/contrib/netbsd-tests/fs/vfs/t_vnops.c
/freebsd-10-stable/contrib/netbsd-tests/games/t_factor.sh
/freebsd-10-stable/contrib/netbsd-tests/h_macros.h
/freebsd-10-stable/contrib/netbsd-tests/include/sys/t_bitops.c
/freebsd-10-stable/contrib/netbsd-tests/include/sys/t_cdefs.c
/freebsd-10-stable/contrib/netbsd-tests/include/sys/t_pslist.c
/freebsd-10-stable/contrib/netbsd-tests/include/sys/t_socket.c
/freebsd-10-stable/contrib/netbsd-tests/include/t_paths.c
/freebsd-10-stable/contrib/netbsd-tests/ipf/expected/n14
/freebsd-10-stable/contrib/netbsd-tests/ipf/expected/n14_6
/freebsd-10-stable/contrib/netbsd-tests/ipf/t_filter_parse.sh
/freebsd-10-stable/contrib/netbsd-tests/ipf/t_nat_exec.sh
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_ioctl.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_proc1.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_proc2.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_proc3.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/kqueue/t_vnode.c
/freebsd-10-stable/contrib/netbsd-tests/kernel/t_rnd.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libbpfjit/t_bpfjit.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/arch/ia64/return_one.S
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/arch/powerpc/return_one.S
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/arch/riscv/return_one.S
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/h_lfsr.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/t_db.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/db/t_db_hash_seq.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/execve/t_execve.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/isqemu.h
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_spawn.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_fnmatch.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_fpsetmask.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_nice.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_randomid.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_siginfo.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_sleep.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_time.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/gen/t_vis.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/inet/t_inet_addr.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/inet/t_inet_network.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/net/t_servent.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdio/t_open_memstream.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_getenv.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_posix_memalign.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_strtod.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_strtoi.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/stdlib/t_strtol.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/string/t_memset.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sync/cpp_atomic_ops_linkable.cc
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_bind.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_connect.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_getrusage.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_getsockname.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_kevent.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mlock.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mmap.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_mprotect.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_posix_fallocate.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_setrlimit.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_sigqueue.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/sys/t_wait.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/time/t_strptime.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libcurses/director/testlang_parse.y
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_exp.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_fenv.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_fmod.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_hypot.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_log.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libm/t_pow.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_cond.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_mutex.c
/freebsd-10-stable/contrib/netbsd-tests/lib/libpthread/t_rwlock.c
/freebsd-10-stable/contrib/netbsd-tests/lib/librumpclient/t_exec.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/librumpclient/t_fd.c
/freebsd-10-stable/contrib/netbsd-tests/lib/librumphijack/t_tcpip.sh
/freebsd-10-stable/contrib/netbsd-tests/lib/libusbhid
/freebsd-10-stable/contrib/netbsd-tests/lib/libutil/t_parsedate.c
/freebsd-10-stable/contrib/netbsd-tests/net/arp
/freebsd-10-stable/contrib/netbsd-tests/net/bpfilter/t_bpfilter.c
/freebsd-10-stable/contrib/netbsd-tests/net/bpfjit/t_bpfjit.c
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_forward.c
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_icmp6_redirect.sh
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_icmp_redirect.sh
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_ping.c
/freebsd-10-stable/contrib/netbsd-tests/net/icmp/t_ping2.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if/ifconf.c
/freebsd-10-stable/contrib/netbsd-tests/net/if/t_ifconf.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if/t_ifconfig.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_bridge/t_bridge.sh
/freebsd-10-stable/contrib/netbsd-tests/net/if_gif
/freebsd-10-stable/contrib/netbsd-tests/net/if_pppoe
/freebsd-10-stable/contrib/netbsd-tests/net/if_tap
/freebsd-10-stable/contrib/netbsd-tests/net/in_cksum
/freebsd-10-stable/contrib/netbsd-tests/net/mcast
/freebsd-10-stable/contrib/netbsd-tests/net/mpls/t_ldp_regen.sh
/freebsd-10-stable/contrib/netbsd-tests/net/mpls/t_mpls_fw.sh
/freebsd-10-stable/contrib/netbsd-tests/net/mpls/t_mpls_fw6.sh
/freebsd-10-stable/contrib/netbsd-tests/net/mpls/t_mpls_fw64.sh
/freebsd-10-stable/contrib/netbsd-tests/net/mpls/t_rfc4182.sh
/freebsd-10-stable/contrib/netbsd-tests/net/ndp
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_forwarding.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ipaddress.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ipv6_lifetime.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_ipv6address.sh
/freebsd-10-stable/contrib/netbsd-tests/net/net/t_tcp.c
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_change.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_flags.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_flags6.sh
/freebsd-10-stable/contrib/netbsd-tests/net/route/t_route.sh
/freebsd-10-stable/contrib/netbsd-tests/rump/modautoload/t_modautoload.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/h_server/h_simpleserver.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_lwproc.c
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpkern/t_sp.sh
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpnet/t_shmif.sh
/freebsd-10-stable/contrib/netbsd-tests/rump/rumpvfs/t_p2kifs.c
/freebsd-10-stable/contrib/netbsd-tests/sbin/gpt
/freebsd-10-stable/contrib/netbsd-tests/sbin/resize_ffs/common.sh
/freebsd-10-stable/contrib/netbsd-tests/sbin/resize_ffs/t_check.sh
/freebsd-10-stable/contrib/netbsd-tests/sbin/resize_ffs/t_grow.sh
/freebsd-10-stable/contrib/netbsd-tests/sbin/resize_ffs/t_grow_swapped.sh
/freebsd-10-stable/contrib/netbsd-tests/sbin/resize_ffs/t_shrink.sh
/freebsd-10-stable/contrib/netbsd-tests/sbin/resize_ffs/t_shrink_swapped.sh
/freebsd-10-stable/contrib/netbsd-tests/sbin/sysctl/t_perm.sh
/freebsd-10-stable/contrib/netbsd-tests/share/mk/t_lib.sh
/freebsd-10-stable/contrib/netbsd-tests/share/mk/t_prog.sh
/freebsd-10-stable/contrib/netbsd-tests/share/mk/t_test.sh
/freebsd-10-stable/contrib/netbsd-tests/sys/net
/freebsd-10-stable/contrib/netbsd-tests/sys/netatalk
/freebsd-10-stable/contrib/netbsd-tests/sys/netinet
/freebsd-10-stable/contrib/netbsd-tests/sys/netinet6
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/cc/t_hello.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/config/d_min
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/config/support/conf/files
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/config/t_config.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/gdb
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/ld
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/make/t_make.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/netpgpverify/Testspec
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/netpgpverify/t_netpgpverify.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/sed/t_sed.sh
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/sort/d_any_char_dflag_out.txt
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/sort/d_any_char_fflag_out.txt
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/sort/d_any_char_iflag_out.txt
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_anon_struct.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_compound_literal_comma.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_flex_array_packed.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_nested_struct.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_c99_union_init4.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_cast_fun_array_param.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_type_question_colon.c
/freebsd-10-stable/contrib/netbsd-tests/usr.bin/xlint/lint1/d_typefun.c
/freebsd-10-stable/contrib/netbsd-tests/usr.sbin/traceroute/t_traceroute.sh
db/Makefile
hash/Makefile
inet/Makefile
stdio/Makefile
stdio/open_memstream2_test.c
stdio/open_memstream_test.c
stdlib/Makefile
sys/Makefile
/freebsd-10-stable/lib/msun/tests/Makefile
313489 09-Feb-2017 ngie

MFC r296586:
r296586 (by bdrewery):

Fix and connect setjmp test.

313488 09-Feb-2017 ngie

MFC r289172,r290254:

r289172:

Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
netbsd-tests.test.mk (r289151)

- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity

r290254:

Remove unused variable (SRCDIR)


/freebsd-10-stable/bin/cat/tests/Makefile
/freebsd-10-stable/bin/date/tests/Makefile
/freebsd-10-stable/bin/expr/tests/Makefile
/freebsd-10-stable/bin/ls/tests/Makefile
/freebsd-10-stable/bin/mv/tests/Makefile
/freebsd-10-stable/bin/pax/tests/Makefile
/freebsd-10-stable/bin/pkill/tests/Makefile
/freebsd-10-stable/bin/sh/tests/Makefile
/freebsd-10-stable/bin/sleep/tests/Makefile
/freebsd-10-stable/bin/test/tests/Makefile
/freebsd-10-stable/bin/tests/Makefile
/freebsd-10-stable/cddl/lib/tests/Makefile
/freebsd-10-stable/cddl/sbin/tests/Makefile
/freebsd-10-stable/cddl/tests/Makefile
/freebsd-10-stable/cddl/usr.bin/tests/Makefile
/freebsd-10-stable/cddl/usr.sbin/dtrace/tests/Makefile
/freebsd-10-stable/cddl/usr.sbin/tests/Makefile
/freebsd-10-stable/gnu/lib/tests/Makefile
/freebsd-10-stable/gnu/tests/Makefile
/freebsd-10-stable/gnu/usr.bin/diff/tests/Makefile
/freebsd-10-stable/gnu/usr.bin/tests/Makefile
/freebsd-10-stable/lib/atf/libatf-c++/tests/Makefile
/freebsd-10-stable/lib/atf/libatf-c++/tests/detail/Makefile
/freebsd-10-stable/lib/atf/libatf-c/tests/Makefile
/freebsd-10-stable/lib/atf/libatf-c/tests/detail/Makefile
/freebsd-10-stable/lib/atf/tests/Makefile
/freebsd-10-stable/lib/atf/tests/test-programs/Makefile
Makefile
Makefile.netbsd-tests
c063/Makefile
db/Makefile
gen/Makefile
gen/execve/Makefile
gen/posix_spawn/Makefile
hash/Makefile
inet/Makefile
locale/Makefile
net/Makefile
net/getaddrinfo/Makefile
regex/Makefile
rpc/Makefile
setjmp/Makefile
ssp/Makefile
stdio/Makefile
stdlib/Makefile
string/Makefile
sys/Makefile
termios/Makefile
time/Makefile
tls/Makefile
tls/dso/Makefile
ttyio/Makefile
/freebsd-10-stable/lib/libcrypt/tests/Makefile
/freebsd-10-stable/lib/libmp/tests/Makefile
/freebsd-10-stable/lib/libnv/tests/Makefile
/freebsd-10-stable/lib/libpam/libpam/tests/Makefile
/freebsd-10-stable/lib/librt/tests/Makefile
/freebsd-10-stable/lib/libthr/tests/Makefile
/freebsd-10-stable/lib/libthr/tests/dlopen/Makefile
/freebsd-10-stable/lib/libthr/tests/dlopen/dso/Makefile
/freebsd-10-stable/lib/libutil/tests/Makefile
/freebsd-10-stable/lib/msun/tests/Makefile
/freebsd-10-stable/lib/tests/Makefile
/freebsd-10-stable/libexec/atf/atf-check/tests/Makefile
/freebsd-10-stable/libexec/atf/atf-sh/tests/Makefile
/freebsd-10-stable/libexec/atf/tests/Makefile
/freebsd-10-stable/libexec/tests/Makefile
/freebsd-10-stable/sbin/devd/tests/Makefile
/freebsd-10-stable/sbin/dhclient/tests/Makefile
/freebsd-10-stable/sbin/growfs/tests/Makefile
/freebsd-10-stable/sbin/mdconfig/tests/Makefile
/freebsd-10-stable/sbin/tests/Makefile
/freebsd-10-stable/secure/lib/tests/Makefile
/freebsd-10-stable/secure/libexec/tests/Makefile
/freebsd-10-stable/secure/tests/Makefile
/freebsd-10-stable/secure/usr.bin/tests/Makefile
/freebsd-10-stable/secure/usr.sbin/tests/Makefile
/freebsd-10-stable/share/examples/tests/Makefile
/freebsd-10-stable/share/tests/Makefile
/freebsd-10-stable/tests/etc/Makefile
/freebsd-10-stable/tests/sys/mqueue/Makefile
/freebsd-10-stable/tests/sys/pjdfstest/tests/Makefile
/freebsd-10-stable/usr.bin/apply/tests/Makefile
/freebsd-10-stable/usr.bin/basename/tests/Makefile
/freebsd-10-stable/usr.bin/calendar/tests/Makefile
/freebsd-10-stable/usr.bin/cmp/tests/Makefile
/freebsd-10-stable/usr.bin/col/tests/Makefile
/freebsd-10-stable/usr.bin/comm/tests/Makefile
/freebsd-10-stable/usr.bin/cut/tests/Makefile
/freebsd-10-stable/usr.bin/dirname/tests/Makefile
/freebsd-10-stable/usr.bin/file2c/tests/Makefile
/freebsd-10-stable/usr.bin/grep/tests/Makefile
/freebsd-10-stable/usr.bin/gzip/tests/Makefile
/freebsd-10-stable/usr.bin/join/tests/Makefile
/freebsd-10-stable/usr.bin/jot/tests/Makefile
/freebsd-10-stable/usr.bin/lastcomm/tests/Makefile
/freebsd-10-stable/usr.bin/m4/tests/Makefile
/freebsd-10-stable/usr.bin/ncal/tests/Makefile
/freebsd-10-stable/usr.bin/printf/tests/Makefile
/freebsd-10-stable/usr.bin/sed/tests/Makefile
/freebsd-10-stable/usr.bin/tests/Makefile
/freebsd-10-stable/usr.bin/truncate/tests/Makefile
/freebsd-10-stable/usr.bin/uudecode/tests/Makefile
/freebsd-10-stable/usr.bin/uuencode/tests/Makefile
/freebsd-10-stable/usr.bin/xargs/tests/Makefile
/freebsd-10-stable/usr.bin/yacc/tests/Makefile
/freebsd-10-stable/usr.sbin/etcupdate/tests/Makefile
/freebsd-10-stable/usr.sbin/fstyp/tests/Makefile
/freebsd-10-stable/usr.sbin/newsyslog/tests/Makefile
/freebsd-10-stable/usr.sbin/nmtree/tests/Makefile
/freebsd-10-stable/usr.sbin/pw/tests/Makefile
/freebsd-10-stable/usr.sbin/sa/tests/Makefile
/freebsd-10-stable/usr.sbin/tests/Makefile
313482 09-Feb-2017 ngie

MFC r276527:

Don't install h_raw if dealing with clang 3.5.0+ to unbreak the tests2 Jenkins
job

The h_raw application doesn't do proper bounds checking without the option
being supplied via the build, which means that it doesn't throw signals and
fail as expected

PR: 196430

313481 09-Feb-2017 ngie

MFC r277648:
r277648 (by jilles):

Enable utimensat tests from NetBSD.

As with other tests from c063, a required #include <sys/stat.h> was missing.

309601 06-Dec-2016 ngie

MFstable/11 r309600:

MFC r307220:
r307220 (by br):

Fix typos: use correct string format and value to compare.

309482 03-Dec-2016 ngie

MFC r299704:
r299704 (by vangyzen):

iconvctl(3): remove superfluous NULL pointer tests

convname and dst are guaranteed to be non-NULL by iconv_open(3).
src is an array. Remove these tests for NULL pointers.
While I'm here, eliminate a strlcpy with a correct but suspicious-looking
calculation for the third parameter (i.e. not a simple sizeof).
Compare the strings in-place instead of copying.

Found by: bdrewery
Found by: Coverity
CID: 1130050, 1130056

309454 03-Dec-2016 ngie

MFstable/11 r309453:

MFC r307700:

Only build lib/libc/tests/iconv if MK_ICONV != no

307719 21-Oct-2016 ngie

MFstable/11 r307718:

MFC r305920:

Remove spurious newlines from atf_tc_fail calls

This changes the results from broken (incorrect) to failed (correct) on
i386

305272 02-Sep-2016 ngie

MFstable/11 r304950:

MFC r304033:

Increase timeout from 10 minutes to 20 minutes for all tests

On particular slow networks, it can (on average) take longer to
resolve hosts to IP* addresses. 20 minutes seemed reasonable for
my work network

This will be solved in a more meaningful way (if possible) using
concurrency in the near future

304553 21-Aug-2016 ngie

Unbreak the build when MK_TESTS != no after r304527

- src.opts.mk should be bsd.own.mk on ^/stable/10
- LIBADD should be DPADD/LDADD on ^/stable/10

Pointyhat to: kib
Reported by: Olivier Pinter <oliver.pinter@hardenedbsd.org>
Sponsored by: EMC / Isilon Storage Division

304527 20-Aug-2016 kib

MFC r303795:
Add __cxa_thread_atexit(3) API implementation.

301808 10-Jun-2016 ngie

MFC r299511:
r299511 (by cem):

print_positional_test: Fix misuse of wchar APIs

These APIs take unit length, not byte length parameters.

CIDs: 1338543, 1338544, 1338545

301798 10-Jun-2016 ngie

MFC r299502:
r299502 (by cem):

nss/gethostby_test: fix broken vector iteration of gethostbyaddr h_aliases

h_aliases is a NULL-terminated rather than fixed-length array. nitems() is not
a valid way to determine its end; instead, check for NULL.

CID: 1346578

300454 23-May-2016 ngie

MFC r299654:

Read the contents of the snapshot files properly

- Use fgetln instead of fgets; localize complexity related to fgetln(3)
inside the loop.
- Skip over blank lines.
- Skip over lines (properly) that start with a "#"

299021 04-May-2016 ngie

MFC r298311,r298312:

r298311:

Make sure fmemopen succeeds in :test_append_binary_pos before calling ftell
on the FILE object

This fixes potential null pointer dereferences on failure

CID: 1254952

r298312:

Fix double fclose of `fp1` when freopen fails

freopen handles closing file descriptors on error, with the exception of
fdopen'ed descriptors, so closing an already fclose'd file descriptor is
incorrect

CID: 1338525

294359 19-Jan-2016 ngie

Default __MAKE_SHELL to /bin/sh when generating aton_ether_subr.c via
`gen_ether_subr`.

__MAKE_SHELL is only defined when installworld is run on stable/10,
which breaks workflows dealing with source trees mounted with noexec [*]

This is a direct commit to stable/10

Reported by: Mark Martinec <Mark.Martinec+freebsd@ijs.si>
Sponsored by: EMC / Isilon Storage Division

292844 28-Dec-2015 ngie

MFC r292317,r292318,r292323,r292324,r292665:

r292317:

Integrate tools/regression/lib/libc/resolv into the FreeBSD test suite as
lib/libc/tests/resolv

Convert the testcases to ATF

Sponsored by: EMC / Isilon Storage Division

r292318:

Add Makefile accidentally missed in r292317

Sponsored by: EMC / Isilon Storage Division

r292323:

Integrate tools/regression/lib/libc/nss into the FreeBSD test suite as
lib/libc/tests/nss

- Convert the testcases to ATF
- Do some style(9) cleanups:
-- Sort headers
-- Apply indentation fixes
-- Remove superfluous parentheses
- Explicitly print out debug printfs for use with `kyua {debug,report}`; for
items that were overly noisy, they've been put behind #ifdef DEBUG
conditionals
- Fix some format strings

Sponsored by: EMC / Isilon Storage Division

r292324:

Iterate down lib/libc/tests/nss...

Sponsored by: EMC / Isilon Storage Division

r292665:

Increase the timeout for resolv_test from the default (300 seconds) to
450 seconds

This is required on slower network connections, and on older releases
(stable/10 seems to be slower as far as name resolution goes.. not sure
why yet).

Remove an outdated comment in the Makefile from when I was working on
this code over a year ago on github

Sponsored by: EMC / Isilon Storage Division

292152 13-Dec-2015 ngie

MFC r291980,r291981:

r291980:

Add missing va_ends for corresponding va_starts to clean up variable arguments
initialized in _test_fmt(..)

Reported by: cppcheck
Sponsored by: EMC / Isilon Storage Division

r291981:

Delete bogus freeing of uninitialized data

Reported by: cppcheck
Sponsored by: EMC / Isilon Storage Division

291870 05-Dec-2015 ngie

MFC r283801,r290846,r290851,r290856,r290860:

r283801 (by araujo):

Fix warning of implicit declaration of function 'mkdir'.

Differential Revision: D2662
Reviewed by: rodrigc, ngie

r290846:

Bump WARNS to 2

Sponsored by: EMC / Isilon Storage Division

r290851:

Change WARNS to 2 across the board with all the libc testcases

This effectively "reverts" r290846

Sponsored by: EMC / Isilon Storage Division

r290856 (by bapt):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

r290860 (by bapt):

Remove unused variables to fix building world

291840 05-Dec-2015 ngie

MFC r290537,r290540,r290560,r290856,r290871,r291839:

r290537:

Integrate tools/regression/lib/libc/stdio into the FreeBSD test suite
as lib/libc/tests/stdio

- Fix some whitespace
- Convert the testcases to ATF
- Convert "/dev/null" to _PATH_DEVNULL

Sponsored by: EMC / Isilon Storage Division

r290540:

printfloat_test and scanfloat_test need symbols from msun; these are automatically
provided on amd64, but not i386. Add libm to DPADD/LDADD to unbreak the i386
tinderbox

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

r290560:

Convert print_positional_test over to ATF

Somehow missed in r290537

Sponsored by: EMC / Isilon Storage Division

r290856 (by bapt):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

r290871:

Disable -Wformat with scanfloat_test when compiling with gcc to avoid a
"use of assignment suppression and length modifier together in scanf format"
warning on line 90 (it's intentional)

Sponsored by: EMC / Isilon Storage Division

r291839:

Initialize errno to 0 in the nul testcase before testing it

For some odd reason stable/10 requires this, otherwise it always fails
the errno == 0 check on line 196.

Sponsored by: EMC / Isilon Storage Division

291818 04-Dec-2015 bdrewery

MFC r291339:

Follow-up r291330: h_testbits.h is only needed by xdr_test.

291816 04-Dec-2015 bdrewery

MFC r291330:

Replace DPSRCS that work fine in SRCS.

291345 26-Nov-2015 ngie

MFC r291172:

Use __MAKE_SHELL instead of HOST_SHELL when generating aton_ether_subr.c
(HOST_SHELL is used in NetBSD)

This fixes permission denied issues when gen_ether_subr is not executable

Reported by: José Pérez <fbl@aoek.com>
Suggested by: bdrewery, sjg

291343 26-Nov-2015 ngie

Fix bad MFC (r291175)

Replace SRCTOP with the relevant path via .CURDIR

Pointyhat to: ngie
Sponsored by: EMC / Isilon Storage Division

291190 23-Nov-2015 ngie

MFC r290572,r290646,r290848,r290849:

r290572:

Integrate tools/regression/lib/libc/gen into the FreeBSD test suite
as lib/libc/tests/gen

The code in test-fnmatch that was used for generating:

- bin/sh/tests/builtins/case2.0
- bin/sh/tests/builtins/case3.0

has been left undisturbed. The target `make sh-tests` has been moved over
from tools/regression/lib/libc/gen/Makefile to
lib/libc/tests/gen/Makefile and made into a PHONY target

case2.0 and case3.0 test input generation isn't being done automatically.
This needs additional discussion.

Sponsored by: EMC / Isilon Storage Division

r290646:

Add missing licensing boilerplate to test-fnmatch.c

Carry over licensing author info from fnmatch_test.c (jilles@)

Sponsored by: EMC / Isilon Storage Division

r290848:

Fix -Wunused warnings

Sponsored by: EMC / Isilon Storage Division

r290849:

Fix -Wmissing-braces warnings by adding braces around all the
testcase inputs

Sponsored by: EMC / Isilon Storage Division

291182 23-Nov-2015 ngie

MFC r290909:

Add some initial tests for SLIST and STAILQ macros

Sponsored by: EMC / Isilon Storage Division

291178 23-Nov-2015 ngie

MFC r290532,r290561,r290843,r290844,r290845:

r290532:

Integrate tools/regression/lib/libc/locale into the FreeBSD test suite
as lib/libc/tests/locale

Sponsored by: EMC / Isilon Storage Division

r290561:

Delete leftover printfs from when these were TAP tests

Sponsored by: EMC / Isilon Storage Division

r290843:

Polish up the tests a bit more after projects/collation was merged to head

Provide more meaningful diagnostic messages if LC_CTYPE can't be set properly
instead of segfaulting, because setlocale returns NULL and strcmp(NULL, b) will
always segfault

Split up the testcases so one failing (in this case en_US.ISO8859-15) won't
cause the rest of the testcases to be skipped

Remove some unused variables

Sponsored by: EMC / Isilon Storage Division

r290844:

Polish up iswctype_test

- Split up the testcases into C locale and ja_JP.eucJP testcases.
- Avoid a segfault in the event that setlocale fails, similar to r290843
- Replace `sizeof(x) / sizeof(*x)` pattern with `nitems(x)`

Sponsored by: EMC / Isilon Storage Division

r290845:

Remove unused variables; sort by alignment where needed

Sponsored by: EMC / Isilon Storage Division

291175 23-Nov-2015 ngie

MFC r290563,r290868,r291038:

r290563:

Integrate tools/regression/lib/libc/net into the FreeBSD test suite
as lib/libc/tests/net

Also, fix eui64_aton_test:test_str(..). The test was comparing the result
of eui64_aton to a pointer of the expected result.

Sponsored by: EMC / Isilon Storage Division

r290868:

Fix -Wformat issues

Reported by: gcc
Sponsored by: EMC / Isilon Storage Division

r291038:

Do not print out errno if the call succeeded unexpectedly; this was a mistake
made in r290868

Reported by: jilles
Sponsored by: EMC / Isilon Storage Division

290896 16-Nov-2015 ngie

MFC r290255:

Add _test suffix to multiple tests in lib/libc to conform to the design noted
in the FreeBSD Test Suite wiki

Sponsored by: EMC / Isilon Storage Division

290881 15-Nov-2015 ngie

MFC r290571:

Fix some TAP -> ATF conversion errors

- Remove a leftover printf from when this was a TAP based testcase
- Catch mmap failures properly

Sponsored by: EMC / Isilon Storage Division

290876 15-Nov-2015 ngie

MFC r290538:

Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite
as lib/libc/tests/stdlib

- Make the code a bit more style(9) compliant
- Convert a sizeof(x)/sizeof(x[0]) to nitems

Sponsored by: EMC / Isilon Storage Division

290875 15-Nov-2015 ngie

MFC r290539:

Integrate tools/regression/lib/libc/string into the FreeBSD test suite
as lib/libc/tests/string

Sponsored by: EMC / Isilon Storage Division

290584 09-Nov-2015 ngie

MFC r290177:

Integrate contrib/netbsd-tests/lib/libc/rpc into the FreeBSD test suite
as lib/libc/rpc

This testcase requires rpcbind be up in running; otherwise the testcases
will time out and be skipped

Sponsored by: EMC / Isilon Storage Division

288607 03-Oct-2015 bdrewery

MFC r288199,r288246:

Add missing CLEANFILES.

287551 08-Sep-2015 kib

MFC r287360:
Fix t_spawnattr test for attributes handling by posix_spawn(3).
Connect it to the build.

282834 13-May-2015 ngie

MFC r281967:

Assuming a system has /bin/csh on it is a bad idea (especially it being
optional on FreeBSD). Look for /bin/cat instead

277446 20-Jan-2015 ngie

MFC r267004,r274592:

r267004 (by gahr):

- Use strlen instead of hardcoding a number
- Terminate a sentence with a period

Approved by: cognet

r274592 (by ngie):

Convert tools/regression/lib/libc/stdio/test-fmemopen into an ATF testcase and
rename as lib/libc/stdio/fmemopen2_test

Sponsored by: EMC / Isilon Storage Division

277443 20-Jan-2015 ngie

MFC r276590:

r276590 (by jilles):

Link lib/libc/c063 tests to the build.

Some files lack required #include <sys/stat.h>. The #ifdef is per ngie's
request; the includes are clearly necessary for struct stat.

The faccessat test fails because it tries to use AT_SYMLINK_NOFOLLOW with
faccessat(), which is not specified by POSIX.1-2008.

Differential Revision: https://reviews.freebsd.org/D1411
Reviewed by: ngie

277442 20-Jan-2015 ngie

MFC r276318:

r276318 (by ngie):

Build/install lib/libc/tests/hash/t_sha2 if MK_OPENSSL == yes

Reported by: Beeblebrox <zaphod@berentweb.com>

277441 20-Jan-2015 ngie

MFC r274075,r274581,r274582,r274595:

r274075 (by ngie):

Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
500 new testcases

Various TODOs have been sprinkled around the Makefiles for items that even need
to be ported (missing features), testcases have issues with building/linking, or
issues at runtime.

A variant of this code has been tested extensively on amd64 and i386
10-STABLE/11-CURRENT for several months without issue. It builds on other
architectures, but the code will remain off until I have prove it works on
virtual hardware or real hardware on other architectures

In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
Sponsored by: EMC / Isilon Storage Division

r274581 (by ngie):

Convert tools/regression/lib/libc/gen/test-arc4random into an ATF testcase and
rename as lib/libc/gen/arc4random_test

Sponsored by: EMC / Isilon Storage Division

r274582 (by ngie):

Remove test-arc4random from this Makefile so others can continue to use
this as-is for the time being

r274595 (by ngie):

Convert tools/regression/lib/libc/stdio/test-fpclassify into an ATF testcase and
Rename as lib/libc/stdio/fpclassify2_test

Sponsored by: EMC / Isilon Storage Division

274075 04-Nov-2014 ngie

Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately
500 new testcases

Various TODOs have been sprinkled around the Makefiles for items that even need
to be ported (missing features), testcases have issues with building/linking, or
issues at runtime.

A variant of this code has been tested extensively on amd64 and i386
10-STABLE/11-CURRENT for several months without issue. It builds on other
architectures, but the code will remain off until I have prove it works on
virtual hardware or real hardware on other architectures

In collaboration with: pho, Casey Peel <casey.peel@isilon.com>
Sponsored by: EMC / Isilon Storage Division