summaryrefslogtreecommitdiff
path: root/tools/tests/test.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid using the non-thread-safe strerror() functionStef Walter2013-07-181-0/+266
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=985481
* Our own unit testing frameworkStef Walter2013-05-211-209/+0
| | | | | | | | * 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
* Fix build on Win32Stef Walter2013-04-031-1/+1
| | | | | | Don't reference an undefined macro https://bugs.freedesktop.org/show_bug.cgi?id=63046
* extract: Make extracted output directories read-onlyStef Walter2013-03-191-2/+6
| | | | | | This is not a security feature or anything like that, but a hint that the files are managed by the extract tool and should not be modified manually.
* Windows doesn't support symlinks, chmod, or atomic renamesStef Walter2013-03-031-0/+4
| | | | | | | * Don't create symlinks on windows * No atomic renames, so delete and then rename * Make sure to close files before unlinking on windows * No chmod permissions on windows
* Open files in binary mode on windowsStef Walter2013-03-031-6/+5
| | | | So that the Windows' C library doesn't munge line endings
* Abstract mmap() into a compat APIStef Walter2013-03-031-0/+2
| | | | | The Win32 for mmap() is very different from Unix, so abstract this into our own p11_mmap_xxx() functions.
* Support for sane writing to files extractedStef Walter2013-02-051-0/+200
* Implement atomic writes of files * Writing with checks that not overwriting anything unless desired * Writing and overwriting of directory contents in a robust way