summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* Change ATF_REQUIRE_MSG calls to ATF_CHECK_MSG to get as many errors as possiblengie2014-10-131-0/+29
| | | | | | | | | t_strptime:common.. - Expect the testcase body as a whole to fail. Multiple PRs will be filed to track the issues (there are 18 check failures) t_strptime:day.. - %EA and %OA seem to be case insensitive on FreeBSD
* Only test the return value in mktime_negyearngie2014-10-131-0/+5
| | | | | | | | Testing for the errno is an optional requirement according to POSIX, and FreeBSD doesn't document that errno would be set on failure with mktime Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* __isnanl is automatically picked according to data type in <math.h>. Therengie2014-10-131-0/+2
| | | | | | isn't a need for the explicit __isnanl test Sponsored by: EMC / Isilon Storage Division
* Add #include <stdio.h> to get sys_nerr definitionngie2014-10-131-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Use 1 as a random seed, as recommended in srandom(3). Adjust the random valuesngie2014-10-131-0/+12
| | | | | | | accordingly Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* memmem with NUL length "needle" (aka small) strings on FreeBSD/OSX returnsngie2014-10-131-0/+5
| | | | | | | NULL instead of the "haystack" value (aka big) Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Do initial port of contrib/netbsd-tests/lib/libc/localengie2014-10-136-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | t_io: - Expect failures potentially related to implementation-specific knowledge of the zh_TW.Big5 locale [*] t_mbrtowc: - Handle unknown locales more gracefully (do not test if the locale doesn't exist) - Expect failure with mbrtowc_internal dealing with Japanese locales (potentially related to implementation detail knowledge of the ja_* locales) [*]. t_mbstowcs, t_mbtowc, t_wctomb: - Handle unknown locales more gracefully (do not test if the locale doesn't exist) t_wcstod: - Treat FreeBSD like NetBSD and Linux in the XXX: FIXME section [*] More investigation is required to determine the root cause of the failures Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Add #include <stdio.h> for printfngie2014-10-131-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Expect nice_err to fail on FreeBSD with unprivileged usersngie2014-10-121-0/+5
| | | | | PR: 189821 Sponsored by: EMC / Isilon Storage Division
* - Add libutil #include for fparselnngie2014-10-121-0/+10
| | | | | | | | | | - Change ATF_REQUIRE_EQ_MSG to ATF_CHECK_EQ_MSG to gather all failing results possible (currently 12 with leftassoc) - Mark leftassoc "atf_tc_expect_fail" on FreeBSD (PR coming soon after further analysis is done on the code) In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Fix compilation errors with missing wide-type headers and fix compilationngie2014-10-121-0/+12
| | | | | | | warnings with -Wformat In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Implement 64MB memory limit for test to ensure that it fails reliably inngie2014-10-121-0/+14
| | | | | | | | | | | | | 600 seconds; it would previously fail inconsistently when run in some virtual machine configurations This patch might need to be reverted or revisited later (see the attached PR for more details) PR: 169302 Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* #include libutil.h for fparseln on FreeBSDngie2014-10-121-0/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Only #include <sys/tls.h> on NetBSDngie2014-10-126-0/+12
| | | | Sponsored by: EMC / Isilon Storage Division
* Port the testcase to FreeBSDngie2014-10-101-0/+14
| | | | | | | | | | - Make #include path to h_macros.h a non-relative path - __gl_stat_t is synonymous with struct stat on FreeBSD - FreeBSD doesn't have _DIRENT_RECLEN - Skip over glob_star on FreeBSD (testcase doesn't pass) In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Skip over t_spawn_open_nonexistent_diag because it requires NetBSD specificngie2014-10-101-0/+7
| | | | | | additions to posix_spawn Sponsored by: EMC / Isilon Storage Division
* SIGPWR does not exist on FreeBSDngie2014-10-101-0/+4
| | | | Sponsored by: EMC / Isilon Storage Division
* Handle getting/setting niceness/priority correctly on FreeBSD vs NetBSDngie2014-10-101-0/+23
| | | | | | | This might be fallout from PR: 189821 Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Disable the invalid pointer test on FreeBSDngie2014-10-101-0/+2
| | | | | | | | | FreeBSD segfaults on invalid pointers passed to getcwd because it throbs the address passed in in libc, whereas NetBSD just passes the information off to the syscall, which allows the kernel to return EFAULT on bad pointers. In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* FreeBSD doesn't support strings greater than MAXHOSTNAMELEN-1 inngie2014-10-102-0/+32
| | | | | | | | | | | | {get,set}{domain,host}name. Adjust the tests to not exceed that value when testing out the code Add a positive and negative test for MAXHOSTNAMELEN-1 and MAXHOSTNAMELEN, respectively PR: 181127 In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* FreeBSD returns ENOTTY instead of EBADF in ttyname_r; mark it as an expectedngie2014-10-101-0/+3
| | | | | | | | | failure PR: 191936 In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Add missing #include <sys/time.h> for gettimeofdayngie2014-10-101-0/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Disable tests that don't pass on FreeBSD due to missing support inngie2014-10-101-0/+6
| | | | | | | | | | humanize_number(3). Bringing in additional revisions from NetBSD's humanize_number(3) will fix the tests Account for the fact that util.h on NetBSD is libutil.h on FreeBSD Submitted by: pho Sponsored by: EMC / Isilon Storage Division
* Expect SIGSEGV in lib/libc/stdlib/t_getenv:setenv_basicngie2014-10-101-0/+12
| | | | | | | See bin/189805 for more details In collaboration with: pho Sponsored by: EMC / Isilon Storage Division
* Only build/run hsearch_basic and hsearch_r_basic on NetBSDngie2014-10-101-0/+8
| | | | | | hdestroy1 is not present on FreeBSD Sponsored by: EMC / Isilon Storage Division
OpenPOWER on IntegriCloud