summaryrefslogtreecommitdiffstats
path: root/tools/regression
Commit message (Collapse)AuthorAgeFilesLines
* Fix a case where rename actually succeeds, which is also expected behaviourpjd2009-10-201-2/+3
| | | | | | according to POSIX. This fixes ZFS on Solaris testing. Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Update copyright.des2009-10-191-1/+1
|
* Remove redundant $FreeBSD$.des2009-10-191-2/+0
|
* Tweaks for sigqueue tests:kib2009-10-112-12/+27
| | | | | | | | | | | - slightly adjust code for style, sort headers. - in sigqtest2, print received signals, to make it easy to see why test failed. - in sigqtest2, job_control_test(), cover a race by adding sleep after child stopped itself to allow for SIGCHLD due to stop and exit to not be coalesced. MFC after: 2 weeks
* Fix build on amd64.delphij2009-10-071-4/+5
| | | | | PR: misc/139409 Submitted by: gk
* sh: Send the "xyz: not found" message to redirected fd 2.jilles2009-10-061-0/+29
| | | | | | | | | | This also fixes that trying to execute a non-regular file with a command name without '/' returns 127 instead of 126. The fix is rather simplistic: treat CMDUNKNOWN as if the command were found as an external program. The resulting fork is a bit wasteful but executing unknown commands should not be very frequent. PR: bin/137659
* A few regression tests for SOCK_SEQPACKET UNIX domain sockets.rwatson2009-10-054-0/+593
| | | | Sponsored by: Google
* Regression tests for r197752 (handling of empty/NULL buffers).das2009-10-041-1/+20
|
* Replace the name of the sysctl to security.bsd.map_at_zero and to bebz2009-10-021-13/+13
| | | | | consistent updated the name of the variable as well, after the change in r197711.
* sh: Disallow mismatched quotes in backticks (`...`).jilles2009-10-011-0/+7
| | | | | | | | | Due to the amount of code removed by this, it seems that allowing unmatched quotes was a deliberate imitation of System V sh and real ksh. Most other shells do not allow unmatched quotes (e.g. bash, zsh, pdksh, NetBSD /bin/sh, dash). PR: bin/137657
* Add a simple C program to check mmap calls to various different addresses.bz2009-09-272-0/+102
| | | | | | | | | | The most important test is the mapping fixed at address 0 depending on the new sysctl. Things will be updated and possibly converted to m4/.t style once the details about the kernel patch will be shaken out. Submitted by: simon (initial version)
* Add cross-filesystem regression tests for ACLs.trasz2009-09-233-1/+289
|
* Add ACL fuzzer. It's not used by the regression tests right now,trasz2009-09-231-0/+225
| | | | but I'd prefert to have it here, so it won't get lost.
* - Remove a bogus test: setsockopt() doesn't return a length, getsockopt()jhb2009-09-231-4/+1
| | | | | does. - Use %z to printf a size_t to fix compile on 64-bit platforms.
* IEEE Std 1003.1, 2004 Edition states:dds2009-09-203-0/+6
| | | | | | | | | | | | | "The escape sequence '\n' shall match a <newline> embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X
* Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementationdds2009-09-202-0/+5
| | | | | | | | | | | of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X
* Add correct test results.dds2009-09-203-0/+42
|
* Describe how other systems treat this case.dds2009-09-201-1/+5
|
* Allow [ to be used as a delimiter.dds2009-09-201-0/+9
| | | | | Pointed by: Marius Strobl Obtained from: Apple
* The transition to Subversion allows us to rename files withoutdds2009-09-20124-9/+7
| | | | | | repo-copy hacks. Remove the test-number prefix from the name of the output files, so that new test cases can be easily added.
* Add regression tests for NFSv4 ACL granular permission enforcement.trasz2009-09-079-2/+738
|
* Add regression tests for NFSv4 ACLs and update POSIX.1e tests to the changedtrasz2009-09-074-26/+1013
| | | | error messages.
* Adapt to the fact that ls(1) correctly prints '+' for symlinks with ACLs now.trasz2009-09-011-2/+1
|
* Add regression test for ACLs on device files - mostly to maketrasz2009-08-311-0/+16
| | | | sure we don't crash on attempt to set ACL on them.
* sh: Fix crash with empty functions (f() { }) introduced in r196483jilles2009-08-281-0/+11
| | | | | | | | | | | | Empty pairs of braces are represented by a NULL node pointer, just like empty lines at the top level. Support for empty pairs of braces may be removed later. They make the code more complex, have inconsistent behaviour (may or may not change $?), are not specified by POSIX and are not allowed by some other shells like bash, dash and ksh93. Reported by: kan
* Add some tests for a fixed bug in an uncommitted patch.jilles2009-08-271-0/+9
| | | | (Trying to get syntax errors for sh -c ':; do' and `:; do`.)
* Add some tests for poll(2)/shutdown(2) interaction.jilles2009-08-252-2/+205
|
* sh: Fix crash when undefining or redefining a currently executing function.jilles2009-08-231-0/+4
| | | | | | | | Add a reference count to function definitions. Memory may leak if multiple SIGINTs arrive in interactive mode, this will be fixed later by changing SIGINT handling. PR: bin/137640
* Start respecting WITHOUT_INET6.bz2009-08-134-7/+40
| | | | | | | | | | | | | | Make regression/priv compile again after the multi-IP jail changes. Note that we are still using the legacy jail(2) rather than the jail_set(2)/jail(3) syscall. Add an IPv4, and an IPv6 loopback address in case we compile with INET6 enabled. Make the priv_vfs_extattr_system compile on amd64 as well using the proper length modifier to printf(3) for ssize_t. Reviewed by: rwatson Approved by: re (kib)
* Fix syntax error, makefile comments start with #.kib2009-07-251-1/+1
| | | | | Submitted by: bde Approved by: re (kensmith)
* Test suite for the poll(2)/select(2) on fifos, pipes and sockets,kib2009-07-1214-0/+883
| | | | | | | and recorded results for several operating systems. Submitted by: bde Approved by: re (kensmith)
* Fix some uninitialise variables.brian2009-07-082-1/+102
| | | | | | | PR: 136383 Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net Approved by: re (kib) MFC after: 3 weeks
* Fix fpathconf(3) on fifos, in effect making ls(1) properlytrasz2009-07-021-0/+34
| | | | | | | | | display '+' on them. Taken from kern/125613, with cosmetic changes. PR: kern/125613 Submitted by: Jaakko Heinonen <jh at saunalahti dot fi> Approved by: re (kib)
* Add some tests for r194975 and r194977.jilles2009-06-251-0/+35
| | | | Approved by: ed (mentor) (implicit)
* Designate special builtins as such in command -V and type.jilles2009-06-241-1/+1
| | | | | | Also document various properties of special builtins that we implement. Approved by: ed (mentor) (implicit)
* Add test for r190698.jilles2009-06-241-0/+7
| | | | | Submitted by: Eygene Ryabinkin Approved by: ed (mentor) (implicit)
* Add tests for r194774.jilles2009-06-231-0/+9
| | | | Approved by: ed (mentor) (implicit)
* Up the scale of the SPX loopback check a bit: use much larger data sizesrwatson2009-06-201-59/+38
| | | | so that we need to do segmentation.
* Add tests for r194406 and r194516.jilles2009-06-192-0/+56
| | | | Approved by: ed (mentor)
* Add a new 'void closefrom(int lowfd)' system call. When called, it closesjhb2009-06-153-0/+293
| | | | | | | | | | | | | | | | | | | | any open file descriptors >= 'lowfd'. It is largely identical to the same function on other operating systems such as Solaris, DFly, NetBSD, and OpenBSD. One difference from other *BSD is that this closefrom() does not fail with any errors. In practice, while the manpages for NetBSD and OpenBSD claim that they return EINTR, they ignore internal errors from close() and never return EINTR. DFly does return EINTR, but for the common use case (closing fd's prior to execve()), the caller really wants all fd's closed and returning EINTR just forces callers to call closefrom() in a loop until it stops failing. Note that this implementation of closefrom(2) does not make any effort to resolve userland races with open(2) in other threads. As such, it is not multithread safe. Submitted by: rwatson (initial version) Reviewed by: rwatson MFC after: 2 weeks
* Add tests for r194127 and r194128.jilles2009-06-142-0/+29
| | | | Approved by: ed (mentor)
* Check that flopen() can lock against self and that children inherit the lock.des2009-06-061-6/+41
|
* lchflags(2) takes int, not u_long like chflags(2) and fchflags(2).pjd2009-06-031-1/+1
| | | | | | Strange, isn't it? Pointed out by: bde
* Add tests for r193169.stefanf2009-05-314-0/+17
|
* Add a regression test for multiple threads of the same process acquiring the ↵zml2009-05-282-0/+110
| | | | | | same fcntl lock. Approved by: dfr (mentor)
* Increment the counter outside the subshell.des2009-05-271-1/+1
|
* Add the regression test for bin/date.edwin2009-05-271-0/+1
|
* Add a regression test for kern/21768.des2009-05-261-0/+42
| | | | MFC after: 1 week
* Regression test the 'addr1,+N' feature added in r192732brian2009-05-253-0/+10
|
* Add regression tests for the date(1) + argument for user-definededwin2009-05-203-0/+99
| | | | | | | | format strings. PR: bin/127514 Submitted by: edwin@ MFC after: 1 week
OpenPOWER on IntegriCloud