summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Port h_hash and t_sha2 to FreeBSDngie2014-11-012-0/+34
| | | | | | | t_sha2 contains dirty copy-paste hacks that need to be fixed with the openssh OpenBSD compat layer Submitted by: pho
* Expect :sscanf_whitespace to fail on !NetBSD OSesngie2014-11-011-0/+4
| | | | Submitted by: pho
* Skip :fopen_regular on !NetBSD because it's a NetBSD specific testngie2014-11-011-0/+2
| | | | Submitted by: pho
* Add new atf_tc_expect_fail to fflush_err; this is a new (within the past ↵ngie2014-11-011-0/+4
| | | | couple months) bug
* Disable testcases 12 and 15-22 on FreeBSDngie2014-11-011-1/+16
| | | | Submitted by: pho
* Expect :snprintf_posarg_error to blow up with a SIGSEGV on !NetBSD OSesngie2014-11-011-0/+10
|
* Port h_atexit to FreeBSDngie2014-11-011-0/+34
| | | | | | | | | __cxa_atexit varies between FreeBSD and NetBSD, and thus we must use pointers instead of static fields in the BSS. More extensive discussion is included in the source code In collaboration with: kib Submitted by: pho
* Port t_mincore to FreeBSDngie2014-11-011-0/+21
| | | | | | | | Mark :mincore_resid as atf_tc_expect_fail on FreeBSD because of new bug discovered in running the tests (it succeeded from earlier on in the year to September/October on FreeBSD, at least) Submitted by: pho
* Port t_kevent to FreeBSDngie2014-11-011-0/+26
| | | | Submitted by: pho
* Skip :sethostname_basic because it messes up the test host's hostnamengie2014-11-011-2/+4
| | | | Convert code from #if defined(__FreeBSD__) to #ifdef __FreeBSD__
* getitimer on FreeBSD returns the last set time instead of the remaining time;ngie2014-11-011-0/+5
| | | | | | test for that instead Submitted by: pho
* Port lib/libc/sys/t_dup to FreeBSD/Linuxngie2014-11-011-0/+20
| | | | | | | | | - The requirements differ between FreeBSD/Linux when dealing with oldd/newd being equal (both fail with EINVAL, not EBADF) - Add an EBADF testcase - Fix compilation issues on clang In collaboration with: pho
* Port lib/libc/net/h_dns_server to FreeBSDngie2014-11-011-0/+117
| | | | Submitted by: pho
* Port tests to FreeBSD/Linuxngie2014-11-011-0/+33
| | | | | | | | Some of the testcases don't work outside of NetBSD, and the behavior of ether_aton_r differs between FreeBSD, Linux, and NetBSD, and the calls to the API need to be massaged for FreeBSD and Linux. Submitted by: pho
* Don't prune duplicate services in the expected output from /etc/services onngie2014-11-011-0/+18
| | | | | | FreeBSD Submitted by: pho
* - Add sys/types.h for the APIs in sys/sysctl.hngie2014-10-241-0/+42
| | | | | | | | | | - Poke at VM_MIN_ADDRESS in machine/vmparam.h because FreeBSD doesn't have a vm.minaddress sysctl analog - Expect ENOMEM instead of EAGAIN in mlock_limits - Provide mlock an mmap'ed page twice to simulate MAP_WIRED on NetBSD In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Correct my previous commit:ngie2014-10-241-4/+9
| | | | | | | | | | | - getrusage_utime_back succeeds reliably on FreeBSD - getrusage_utime_zero passes/fails in a seemingly non-deterministic manner. Skip it for now (and fix it later) In the initial port of this testcase to FreeBSD, the results failed reliably in the same manner as it does on NetBSD Sponsored by: EMC / Isilon Storage Division
* - Mark signo __unused in the signal handler functionngie2014-10-241-0/+8
| | | | | | | - Effectively #if 0 out some code that does not fail on FreeBSD In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* - Add inttypes.h and stdint.h in lieu of int_limits.h from NetBSDngie2014-10-241-0/+8
| | | | | | - Use #include "h_macros.h" instead of relative path analog Sponsored by: EMC / Isilon Storage Division
* - Test for EINVAL requirement when passing an invalid flag in to msync(2)ngie2014-10-241-0/+11
| | | | | | | | - Expect ENOMEM instead of EFAULT when msync'ing a previously munmap'ed region on FreeBSD Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* - Ignore EINVAL check with mknod(path, S_IFCHR, -1) as the testcase is alwaysngie2014-10-241-0/+10
| | | | | | | | executed on a non-devfs filesystem - Expect mknod(path, S_IFREG, 0) to fail on FreeBSD Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Omit the mprotect_exec testcase on FreeBSDngie2014-10-231-0/+6
| | | | Sponsored by: EMC / Isilon Storage Division
* Mark signum __unusedngie2014-10-231-0/+8
| | | | Sponsored by: EMC / Isilon Storage Division
* Fix a typo (__FreeBSD__ -> __NetBSD__ when omitting setrlimit_nthr)ngie2014-10-231-1/+1
|
* Add limits.h #include for SSIZE_MAXngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Add limits.h #include for SSIZE_MAXngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* - Omit setrlimit_nthr testcase on FreeBSD (requires lwp.h, et al)ngie2014-10-231-0/+10
| | | | | | | | - Expect overflow with rlim_max at INT64_MAX, not UINT64_MAX (rlim_t is int64_t on FreeBSD) In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* - Mark sig/signo __unusedngie2014-10-231-0/+12
| | | | | | - Do not provide a relative path via #include "h_macros.h" Sponsored by: EMC / Isilon Storage Division
* Use <atf_srcdir>/truncate_test.root_owned instead of /usr/bin/fpr as fpr doesngie2014-10-231-0/+13
| | | | | | | | | not exist on FreeBSD truncate_test.root_owned will be generated at build time and owned by root In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Add limits.h #include for INT_MAXngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* - Omit the poll testcases on FreeBSD (they require pollts)ngie2014-10-231-0/+13
| | | | | | - Add necessary headers for the testcases Sponsored by: EMC / Isilon Storage Division
* Mark signo __unused in handler(..)ngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Omit all of the testcases as revoke(2) is only implemented on devfs(5)ngie2014-10-231-0/+9
| | | | | Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Omit the pollts testcases on FreeBSDngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Port t_mmap.c to FreeBSDngie2014-10-231-0/+19
| | | | | | | | | - Add needed headers for the testcases - Omit mmap_block on non-NetBSD OSes - Use "security.bsd.map_at_zero" instead of "vm.user_va0_disable" Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Add sys/socket.h #include for struct sockaddr_inngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Add limits.h #include for LINE_MAXngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* - Mark unused parameters __unused in handlerngie2014-10-231-0/+12
| | | | | | | | - Call sigqueue with getpid() instead of 0 -- the latter idiom appears to only be valid on NetBSD In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Convert "fcntl(n, F_CLOSEM)" to "closefrom(n)"ngie2014-10-231-0/+4
| | | | | Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Port t_pipe2.c to FreeBSDngie2014-10-231-0/+22
| | | | | | | | | | - Omit the pipe2_nosigpipe testcase on FreeBSD (FreeBSD doesn't have O_NOSIGPIPE). - Convert "fcntl(n, F_CLOSEM)" to "closefrom(n)". - Save and restore the resource limit on the number of files (RLIMIT_NOFILE). In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Expect getgroups_err to fail on FreeBSDngie2014-10-231-0/+3
| | | | | | PR: 189941 Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Add netinet/in.h for struct sockaddr_inngie2014-10-231-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Add sys/socket.h #include for bind(2), et alngie2014-10-211-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Port t_chroot to FreeBSDngie2014-10-211-0/+8
| | | | | | | - Add missing #include sys/stat.h for mkdir(2) - Omit the fchroot(2) tests because the support is not present on FreeBSD Sponsored by: EMC / Isilon Storage Division
* unlink("/") fails with EISDIR instead of EBUSY on FreeBSD; test for thatngie2014-10-211-0/+4
| | | | | | instead Sponsored by: EMC / Isilon Storage Division
* Mark osi __unused so this compiles cleanly on FreeBSDngie2014-10-211-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Port t_write to FreeBSDngie2014-10-211-0/+10
| | | | | | | | - Mark the signo variable for the signal handle __unused - Use limits.h instead of sys/syslimits.h (the latter does not exist on FreeBSD) Sponsored by: EMC / Isilon Storage Division
* Add missing #include for sys/stat.h for fchmodngie2014-10-211-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* libutil.h is required for fparseln on FreeBSDngie2014-10-211-0/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Port lib/libc/gen/t_siginfo to FreeBSDngie2014-10-211-0/+6
| | | | | | | | | | | - mcontext_t on FreeBSD doesn't have a __gregs field (it's split out on FreeBSD into separate fields). In order to avoid muddying the test code with MD code, the debugging trace info has not been implemented - FreeBSD does not implement the si_stime and si_utime fields in siginfo_t, so omit the debugging code that dumps the values - sys/inttypes.h doesn't exist on FreeBSD Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud