summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/gen
Commit message (Collapse)AuthorAgeFilesLines
* MFC r280830: wordexp(): Add testcase for non-default IFS in environment.jilles2015-04-191-0/+15
| | | | The non-default IFS is expected to be used.
* MFC r274075,r274581,r274582,r274595:ngie2015-01-203-167/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fnmatch(): Add test for r254091 (pattern with single backslash).jilles2013-08-111-0/+4
| | | | | | | | This test cannot be converted to an sh(1) test because the syntax would be invalid. PR: 181129 MFC after: 1 week
* wordexp(): Fix syntax validation for backslashes in single-quotes.jilles2013-07-231-0/+12
|
* Add missing headers.kevlo2013-07-172-0/+3
|
* popen(): Add 'e' mode character to set close-on-exec on the new fd.jilles2013-05-201-4/+4
| | | | | | | | | | | | | | If 'e' is used, the kernel must support the recently added pipe2() system call. The use of pipe2() with O_CLOEXEC also fixes race conditions between concurrent popen() calls from different threads, even if the close-on-exec flag on the fd of the returned FILE is later cleared (because popen() closes all file descriptors from earlier popen() calls in the child process). Therefore, this approach should be used in all cases when pipe2() can be assumed present. The old version of popen() rejects "re" and "we" but treats "r+e" like "r+".
* Add a test program for popen().jilles2013-05-202-1/+228
|
* wordexp(): Remove wrong IFS usage.jilles2013-04-011-0/+19
| | | | | | | | | | | Words in shell script are separated by spaces or tabs independent of the value of IFS. The value of IFS is only relevant for the result of substitutions. Therefore, there should be a space between 'wordexp' and the words to be expanded, not an IFS character. Paranoia might dictate that the shell ignore IFS from the environment (even though our sh currently uses it), so do not depend on it in the new test case.
* nftw(): POSIX says directories causing loops should be silently skipped.jilles2012-08-092-1/+142
| | | | Formerly, loops caused nftw() to abort the traversal with ELOOP.
* libc: Add some tests for fmtmsg().jilles2012-02-212-1/+252
|
* A regression test to ensure that arc4random returns different sequencesdas2011-11-152-1/+91
| | | | in parent and child processes after a fork.
* posix_spawn: If an error is detected in the child process, reap the zombie.jilles2011-07-102-1/+91
| | | | | | | | | | Formerly, in this case an error was returned but the pid was also returned to the application, requiring the application to use unspecified behaviour (the returned pid in error situations) to avoid zombies. Now, reap the zombie and do not return the pid. MFC after: 2 weeks
* Generate some tests for sh's case command from the fnmatch tests.jilles2010-05-092-1/+55
| | | | | I'm committing the generated files because I don't like a build dependency for the sh(1) tests, and they are small and will not change much.
* fnmatch: Fix bad FNM_PERIOD disabling if an asterisk has been seen.jilles2010-04-161-0/+1
| | | | | | | Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD) PR: 116074 MFC after: 1 week
* Add some tests for fnmatch(3).jilles2010-04-162-1/+336
| | | | MFC after: 1 week
* wordexp(3): fix some bugs with signals and long outputsjilles2009-10-231-0/+42
| | | | | | | | | | | | * retry various system calls on EINTR * retry the rest after a short read (common if there is more than about 1K of output) * block SIGCHLD like system(3) does (note that this does not and cannot work fully in threaded programs, they will need to be careful with wait functions) PR: 90580 MFC after: 1 month
* Regression tests for fmtcheck(3).das2008-08-022-1/+103
| | | | Obtained from: NetBSD
* Fix an amusing typo that has prevented this from compiling since 2004.das2007-12-161-7/+7
|
* Write negative zero as '-0.0'. Otherwise, it is parsed as an integerdas2003-03-271-2/+2
| | | | before being cast to a floating point type, and the sign is lost.
* Add more tests. Specifically, infinity cast from other types shouldmike2003-02-081-0/+6
| | | | always be classified as infinity.
* Add regression test for soon-to-be-committed fpclassify().mike2003-02-052-1/+70
|
* Add a regression test for wordexp() and wordfree().tjr2003-01-042-0/+185
OpenPOWER on IntegriCloud