| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=290572
|
| |
|
|
|
|
|
|
|
|
| |
Distinguish between WRDE_BADVAL and WRDE_SYNTAX based on when the error
occurred (parsing or execution), not based on whether WRDE_UNDEF was passed.
Also, return WRDE_NOSPACE for a few more unexpected results from sh.
Notes:
svn path=/head/; revision=286941
|
| |
|
|
|
|
|
|
|
| |
The non-default IFS is expected to be used.
MFC after: 1 week
Notes:
svn path=/head/; revision=280830
|
| |
|
|
|
|
|
|
|
| |
Rename as lib/libc/stdio/fpclassify2_test
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=274595
|
| |
|
|
|
|
|
| |
this as-is for the time being
Notes:
svn path=/head/; revision=274582
|
| |
|
|
|
|
|
|
|
| |
rename as lib/libc/gen/arc4random_test
Sponsored by: EMC / Isilon Storage Division
Notes:
svn path=/head/; revision=274581
|
| |
|
|
|
|
|
|
|
|
|
| |
This test cannot be converted to an sh(1) test because the syntax would be
invalid.
PR: 181129
MFC after: 1 week
Notes:
svn path=/head/; revision=254231
|
| |
|
|
| |
Notes:
svn path=/head/; revision=253581
|
| |
|
|
| |
Notes:
svn path=/head/; revision=253403
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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+".
Notes:
svn path=/head/; revision=250827
|
| |
|
|
| |
Notes:
svn path=/head/; revision=250825
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=248987
|
| |
|
|
|
|
|
| |
Formerly, loops caused nftw() to abort the traversal with ELOOP.
Notes:
svn path=/head/; revision=239160
|
| |
|
|
| |
Notes:
svn path=/head/; revision=231984
|
| |
|
|
|
|
|
| |
in parent and child processes after a fork.
Notes:
svn path=/head/; revision=227522
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
Notes:
svn path=/head/; revision=223907
|
| |
|
|
|
|
|
|
| |
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.
Notes:
svn path=/head/; revision=207821
|
| |
|
|
|
|
|
|
|
|
| |
Example: fnmatch("a*b/*", "abbb/.x", FNM_PATHNAME | FNM_PERIOD)
PR: 116074
MFC after: 1 week
Notes:
svn path=/head/; revision=206711
|
| |
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=206710
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
Notes:
svn path=/head/; revision=198406
|
| |
|
|
|
|
|
| |
Obtained from: NetBSD
Notes:
svn path=/head/; revision=181155
|
| |
|
|
| |
Notes:
svn path=/head/; revision=174692
|
| |
|
|
|
|
|
| |
before being cast to a floating point type, and the sign is lost.
Notes:
svn path=/head/; revision=112698
|
| |
|
|
|
|
|
| |
always be classified as infinity.
Notes:
svn path=/head/; revision=110569
|
| |
|
|
| |
Notes:
svn path=/head/; revision=110405
|
|
|
Notes:
svn path=/head/; revision=108639
|