summaryrefslogtreecommitdiff
path: root/tools/tests/test-save.c
Commit message (Collapse)AuthorAgeFilesLines
* extract: Make extracted output directories read-onlyStef Walter2013-03-191-14/+11
| | | | | | 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.
* extract: Allow p11_save_write() to automatically calculate lengthStef Walter2013-03-151-0/+50
| | | | | | | | | Also if automatically calculating length, then ignore input that is NULL, as something that shouldn't be written out. This allows easier chaining of optional output, such as comments. https://bugs.freedesktop.org/show_bug.cgi?id=62029
* Initialize modules correctly in testsStef Walter2013-03-031-0/+2
| | | | This fixes hangs when running tests on windows
* Windows doesn't support symlinks, chmod, or atomic renamesStef Walter2013-03-031-2/+24
| | | | | | | * 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
* Support for sane writing to files extractedStef Walter2013-02-051-0/+494
* Implement atomic writes of files * Writing with checks that not overwriting anything unless desired * Writing and overwriting of directory contents in a robust way