summaryrefslogtreecommitdiff
path: root/common/tests/test-compat.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix handling of mmap failure and mapping empty filesPascal Terjan2014-02-131-0/+17
| | | | | | | | | | | Check the return value of mmap() correctly. Empty files cannot be mmap'd so we implement some work around code for that. https://bugs.freedesktop.org/show_bug.cgi?id=74773 Signed-off-by: Stef Walter <stef@thewalter.net>
* Disable tests with setgid binaries when running in fakerootAndreas Metzler2013-10-011-1/+4
| | | | | We use the FAKED_MODE environment variable as a way to detect fakeroot.
* test-compat calls test_getauxval which is in a UNIX defined blockMichael Cronenworth2013-07-301-0/+2
| | | | | | MinGW builds fail due to this. https://bugs.freedesktop.org/show_bug.cgi?id=67518
* Use simple serial automake test harnessStef Walter2013-07-231-2/+2
| | | | | * Add a testing sanity check to see if we're catching errors * Fix a few other testing issues
* Don't load configs from user directory when setuidStef Walter2013-07-181-0/+30
| | | | | | | When running as setuid() or setgid() don't access the user's home directory, or use $HOME environment variables. https://bugzilla.redhat.com/show_bug.cgi?id=985014
* Our own unit testing frameworkStef Walter2013-05-211-20/+8
| | | | | | | | * Support the TAP protocol * Much cleaner without having to carry around state * First class support for setup/teardown * Port the common tests * Wait on porting other tests until we've merged outstanding code
* More compatible path munging and handling codeStef Walter2013-04-031-32/+0
| | | | | | | | | | Centralize the path handling code, so we can remove unixy assumptions and have a chance of running on Windows. The current goal is to run all the tests on Windows. Includes some code from LRN <lrn1986@gmail.com> https://bugs.freedesktop.org/show_bug.cgi?id=63062
* Fix invalid memory accesses reported by 'make memcheck'Stef Walter2013-03-201-0/+16
| | | | These are things that showed up in valgrind while running the tests.
* trust: Don't use POSIX or GNU basename()Stef Walter2013-03-191-0/+93
Both are nasty. Do our own, and test it a bit https://bugs.freedesktop.org/show_bug.cgi?id=62479