summaryrefslogtreecommitdiff
path: root/lib/ccan/failtest/failtest.c
AgeCommit message (Collapse)AuthorFilesLines
2012-03-22lib/ccan/failtest: compile fix for OpenBSDRusty Russell1-0/+9
OpenBSD doesn't idempotent-wrap sys/mman.h, so when we #define mmap to an alternative, it fails to compile when sys/mman.h is included again. Workaround is not to #define mmap to add arguments on Open BSD. (Imported from CCAN commit e18e80fe175422d26efe689addc0f67bdba0e097) Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-08failtest: don't assume FD_SETSIZE is maximum runtime fd.Rusty Russell1-3/+14
This breaks when rlimit is less. Unfortunately, valgrind (32 bit x86, 3.7.0.SVN, Ubuntu) fails to set the file limit properly on the test: reducing it to the obvious getrlimit/setrlimit/getrlimit works fine, so leaving diagnostics for another day. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit a85a809bb17af6b6cf6fa31b300c6622f64ee700) Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Thu Mar 8 06:30:48 CET 2012 on sn-devel-104
2012-03-07lib/ccan: import failtest and required ccan modules for TDB2 unit tests.Rusty Russell1-0/+1713
New modules: failtest, list, time, read_write_all and tlist. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>