summaryrefslogtreecommitdiff
path: root/tests/lib/libc/sys
AgeCommit message (Collapse)Author
2014-02-27Use an abs wide enough to cover the types involved.joerg
2014-02-26Remove hardcoded VM_MIN_ADDRESS and instead query current value viamartin
sysctl vm.minaddress.
2013-07-24There wasn't a codegen bug - the test program itself was buggy.skrll
Nothing to see hear... move along.
2013-07-24Fix msgsz confusion.skrll
2013-07-23Compile tests/lib/libc/sys/t_msgrcv with -O0 on hppa to avoid compilerskrll
bug.
2013-05-05Whitespaceskrll
2013-03-31add more test cases for nanosleepchristos
2013-03-08Sharpen the "return imediately" test case and fix/uncomment the "wait untillmartin
signal" one.
2013-03-08Rename testprogram and make it more general by adding other testcases.martin
One commented out, I didn't manage to get all signal handling correct for now.
2013-03-08Add a test program for PR kern/47625, based on the sample code providedmartin
by anthony mallet.
2012-12-04Move the bitmap(3) test to the "right" place. Note it in bitops(3). Xrefs.jruoho
2012-12-01Add a bitops testchristos
2012-11-29Skip kqueue_unsupported_fd if the drvctl device is not present.martin
2012-11-24Add a test for adding an event to an unsupported fd.christos
2012-11-07Merge in the minimal test from the old src/regress/sys/kernel/sigtramppgoyette
test.
2012-09-27Simplifyskrll
2012-09-12setcontext() used to be incompatible with -lpthread since it affectedmanu
the TLS pointer, therefore wrecking the pthread environement. Some ports had _UC_TLSBASE flag or equivalent (_UC_UNIQUE on alpha) that controlled whether setcontext() would change the TLS pointer. This change let libpthread override setcontext() with its own version that unsets _UC_TLSBASE, enabling safe usage of setcontext() with -lpthread. We also have the following required changes here: - rename alpha's _UC_UNIQUE into _UC_TLSBASE - add _UC_TLSBASE definition in header file for all ports (powerpc, sh3, sparc and sparc64 lack the implementation for now) - introduce a libc stub that can be overriden for setcontext() - modify MD libcs swapcontext() implementations so that they use the setcontext() libc stub instead of doing a plain system call. While we are there: - document various MD _UC_* flags in header file - add libc and libpthread tests for swapcontext() behavior (hopefully helpful to spot MD problems introduced with this change) Future work: - Deciding whether kernel support or _UC_TLSBASE should be added for powerpc, sh3, sparc and sparc64 is left to portmasters sparc64 Approved by core@
2012-09-08Make this compile on archs where VM_MIN_ADDRESS is not defined (or notmartin
exported to userland)
2012-09-07Deal with architectures defining VM_MIN_ADDRESS > 0.martin
Add additional error code tests using a pointer one page past current brk.
2012-08-08Exclude tests that use rumpchristos
2012-06-22tests for recvmmsgchristos
2012-06-14Disable the mmap_block test again, it doesn't panic when mmaping /dev/wd0dbouyer
only by accident. PR kern/46592.
2012-06-12check thread limitchristos
2012-06-08Degrade all intermediate failures due to memory/resource shortage tomartin
"skip" instead of "fail" - only if we get through to the real meat, we can tell wether mlockall/mincore work or not.
2012-06-07Revert previous - instead of guessing the amount of needed memory lockedmartin
limits (often way too high) and skipping the test case if in doubt, raise the limits as far as we can, and fix a few places in the test where we could run into the limits and either skip or fail with a reasonable message.
2012-06-05Try to estimate the number of locked pages the mincore() test will need andmartin
check it against resource limits, skipping the tests if it probably is too low.
2012-06-02adapt to new realitymartin
2012-06-01Do not skip the block device mmap test, as it does not crashmartin
the kernel any more. Mark it as expected failure instead.
2012-05-31Add a (skipped for now) test case for PR 46463martin
2012-05-23Simplify creation of a temporary file slightly, fix sizeof(buf) confusionmartin
when buf is a pointer.
2012-05-22Typo in commentmartin
2012-05-21Calling _lwp_create() with a bogus ucontext could trigger a kernelmartin
assertion failure (and thus a crash in DIAGNOSTIC kernels). Independently discovered by YAMAMOTO Takashi and Joel Sing. To avoid this, introduce a cpu_mcontext_validate() function and move all sanity checks from cpu_setmcontext() there. Also untangle the netbsd32 compat mess slightly and add a cpu_mcontext32_validate() cousin there. Add an exhaustive atf test case, based partly on code from Joel Sing. Should finally fix the remaining open part of PR kern/43903.
2012-05-16mmap_block:martin
do not use a hardcoded block device list, but query the kernel for attached disks instead, then try to mmap the raw partition.
2012-05-16Remove also redundant comment (the reference to the PR is already in thejruoho
metadata).
2012-05-16Simplify the test for PR kern/4645 and make it independend of resourcemartin
settings.
2012-05-16Fix typo in comment.wiz
2012-05-16Enable the test for PR kern/46457 now that it does not crash themartin
kernel any more.
2012-05-16Add a case for PR kern/46457. This is skipped for the time being, as itjruoho
reproduces the panic described in the PR.
2012-04-21Avoid harmless compiler (integer) warnings.jruoho
2012-04-20Add few unit tests for mlock(2), including a case for PR kern/44788.jruoho
2012-03-31Note PR bin/14558.jruoho
2012-03-22dholland fixed PR/44927christos
2012-03-18Move the references to PRs from code comments to the test description. Oncejruoho
ATF has the ability to output the metadata in the HTML reports, it should be easy to traverse between releng and gnats -reports via links.
2012-03-18Get rid of the weird macros.jruoho
2012-03-17Move the _lwp_ctl(2) preemption counter check to the right place.jruoho
2012-03-17PR kern/46077 was fixed; remove xfail.jruoho
2012-03-16This is no longer expected to fail.matt
2012-03-16Don't rely on INT_MAX being unmapped. Use mmap to get a page and then unmapmatt
it. Then use that address for msync.
2012-03-14Skip the ENOMEM/RLIMIT_MEMLOCK case when doing mlockall(2).jruoho
2012-03-13Use atf_tc_skip().jruoho