summaryrefslogtreecommitdiff
path: root/regress/sys/kern
AgeCommit message (Collapse)Author
2014-06-24POSIX doesn't specify MAP_FILE and it's a noop anyway, so remove it toMatthew Dempsky
make test portable to other OSes.
2014-06-23Add regress test for SIGSEGV and SIGBUS siginfo semantics.Matthew Dempsky
According to POSIX, SIGSEGV should specify SEGV_ACCERR if the memory pages are mapped, but the protections don't match the user's access attempts, while SEGV_MAPERR should only be specified for pages that are unmapped. Some platforms currently handle this correctly, but not all. Additionally, SIGBUS/BUS_ADRERR should be generated instead of SIGSEGV for access to file mapped pages that exceed the end of the file. (Thanks to kettenis@ for suggesting this test.) Currently failing, so not linked into the regress tree yet.
2014-05-20Use errc/warnc to simplify code.Philip Guenther
Also, in 'ftp', always put the error message last, after the hostname/ipaddr. ok jsing@ krw@ millert@
2014-04-27Regress for access()Philip Guenther
2014-04-24The switch statement given/when was introduced in Perl 5.10 and gotAlexander Bluhm
experimental in Perl 5.18. So we see warnings in the tests. given is experimental at funcs.pl line 62. when is experimental at funcs.pl line 63. Just suppress this type of warnings for now. If Perl will disable smart match, the simple regression code still works. If they will choose to remove given/when, we can fix it later. Discussed with and OK andre@ afresh1@
2014-04-18It's been a quarter century: we can assume volatile is present with that name.Philip Guenther
2014-02-28... also check that writing 0 bytes works...Marc Espie
2014-01-22Missing #includePhilip Guenther
2014-01-18Remove -Wbounded: it is now the compiler default.Martynas Venckus
2014-01-10Use arc4random instead of random in the flock regress tests.Joel Sing
ok deraadt@
2014-01-10Do not include MD assembly code in a sys regress test. Untested on alpha,Joel Sing
however it has a much better chance of compiling than it did previously.
2014-01-08Set socket buffer size to fixed value of 100000 octets. ThisAlexander Bluhm
prevents that the socket splicing performance test interferes with the dynamic TCP buffer size adjusting.
2013-12-21Match the type to the callsPhilip Guenther
2013-10-07Add a regression test that ensures profiling signals are delivered to theJoel Sing
thread whose execution consumed the CPU time and resulted in the profiling timer expiring. This test currently fails and will be fixed shortly. Feedback from guenther@
2013-10-07Prefer -lpthread over -pthread.Joel Sing
2013-09-12Misc time_t tweaks. %ld / (long)tv_sec -> %lld / (long long)tv_sec.Kenneth R Westerback
Eliminate unneeded casts. suggestions from & ok millert@ guenther@
2013-08-09Move the check for required perl packages into Makefile.inc so thatAlexander Bluhm
make obj always runs through als sudirs.
2013-08-07Check wether the required perl packages are installed. If not,Alexander Bluhm
print a message and skip the regression tests which need them. OK deraadt@
2013-08-01Some tests are currently failing. Only run those if the REGRESS_FULLMark Kettenis
variable is set.
2013-07-30betterMark Kettenis
2013-07-30Make this test actually work on sparc64:Mark Kettenis
- Fill delay slot of "ret" pseudo-instruction. - Properly synchronize instruction cache using the iflush instruction.
2013-03-30Make forking socket splicing tests more reliable on slow machines.Alexander Bluhm
Their intention is to test kernel stability. Instead of failing, add a timeout and ignore errors.
2013-01-17Improve socket splicing tests:Alexander Bluhm
- One more UDP test. - Enforce that kernel returns EFBIG where appropriate. - Better comments in test files.
2013-01-15The socket splicing tests allow the kernel to return EFBIG in caseAlexander Bluhm
the splicing maximum has been reached.
2013-01-08Add performance test for socket splicing. Two tcpbench processesAlexander Bluhm
are used as server and client. Between them is a relay process that can either copy or splice the data. Benchmarking is done for TCP and UDP and for copy and splice. All tests are executed on localhost per default. Alternatively the relay process can be started on a remote machine. Depending on hardware and environment socket splicing has increased my throughput by 30% or up to 150% in this test.
2013-01-08Autoflush the log file of the child process.Alexander Bluhm
2013-01-03Reengineer the socket splicing regression tests:Alexander Bluhm
- Move the tests from splice to new sosplice directory for consistent naming. - Split the API tests and the TCP splicing tests into separate directories. - Create some tests for the upcoming UDP splicing. - Tests can be run in obj directories now. - The API tests can run both on a local and on a remote machine now. - Fix the forking TCP tests which splice and read or write simultaneously. - Bunch of little fixes for races in the tests. - Deduplicate code, move checks into common functions.
2013-01-07missing argument to printfMiod Vallat
2013-01-05Fix test descriptions.Alexander Bluhm
2013-01-05Add more tests for UDP socket splicing and enhance existing tests.Alexander Bluhm
2013-01-03Reengineer the socket splicing regression tests:Alexander Bluhm
- Move the tests from splice to new sosplice directory for consistent naming. - Split the API tests and the TCP splicing tests into separate directories. - Create some tests for the upcoming UDP splicing. - Tests can be run in obj directories now. - The API tests can run both on a local and on a remote machine now. - Fix the forking TCP tests which splice and read or write simultaneously. - Bunch of little fixes for races in the tests. - Deduplicate code, move checks into common functions.
2013-01-04Fix another race in socket splicing test.Alexander Bluhm
2013-01-03Reengineer the socket splicing regression tests:Alexander Bluhm
- Move the tests from splice to new sosplice directory for consistent naming. - Split the API tests and the TCP splicing tests into separate directories. - Create some tests for the upcoming UDP splicing. - Tests can be run in obj directories now. - The API tests can run both on a local and on a remote machine now. - Fix the forking TCP tests which splice and read or write simultaneously. - Bunch of little fixes for races in the tests. - Deduplicate code, move checks into common functions.
2013-01-03The socket splicing tests have been moved from directory splice toAlexander Bluhm
sosplice.
2013-01-03Add subdir sosplice.Alexander Bluhm
2013-01-03Reengineer the socket splicing regression tests:Alexander Bluhm
- Move the tests from splice to new sosplice directory for consistent naming. - Split the API tests and the TCP splicing tests into separate directories. - Create some tests for the upcoming UDP splicing. - Tests can be run in obj directories now. - The API tests can run both on a local and on a remote machine now. - Fix the forking TCP tests which splice and read or write simultaneously. - Bunch of little fixes for races in the tests. - Deduplicate code, move checks into common functions.
2013-01-02tyop in commentJasper Lievisse Adriaanse
2013-01-02regress test for pty TTYHOG bug; OK miod@Todd C. Miller
2012-07-09This test is not reliable in echo mode.Alexander Bluhm
2012-07-09Modern Perl deferes signal handlers between opcodes. To send TCPAlexander Bluhm
resets at the indended moments into the spliced stream, terminate the client or server process with the alarm default action.
2012-07-09Add a socket splicing test that sends a reset from the client whileAlexander Bluhm
the socket buffers are filled.
2012-07-08Add a test for kevent(EV_DELETE) screwing with POSIX file locksPhilip Guenthe
2012-06-29Fix year in public domain declaration. Also, include <stddef.h> forMatthew Dempsky
POSIX compatibility so the test doesn't depend on <signal.h> defining NULL.
2012-06-29Clear out the sigset_t again before calling sigpending() to make sureMatthew Dempsky
sigpending() actually sets it and it wasn't just still set from calling sigprocmask().
2012-06-29add a regress test for sigpending(); add licensing notice to stackjmp.cMatthew Dempsky
2012-06-23add (currently failing) stackjmp regress testMatthew Dempsky
2012-04-12rfork RIPPhilip Guenthe
2012-03-05If the main thread exits, the process should still be able to getPhilip Guenthe
signals
2011-11-26If sigaltstack() fails, report which thread correctlyPhilip Guenthe
Pointed out by Steffen Daode Nurpmeso (sdaoden at googlemail.com)
2011-11-22Add a test for forked processes inheriting their parent's signal stack.Joshua Elsasser
ok guenther@