]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r314450,r313439:
authorngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Mar 2017 01:52:50 +0000 (01:52 +0000)
committerngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 7 Mar 2017 01:52:50 +0000 (01:52 +0000)
commite9fdc1866e6a848991f05e5cf17650f015811e26
tree622b85ef1a916201941acbaf5507ef0f713bef58
parent631a77e5bad9e5865a3cd4b08e5b8eadccd59457
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>

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