chiark / gitweb /
test-fileio: use random name for written file
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Jul 2013 23:49:55 +0000 (19:49 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Jul 2013 13:29:21 +0000 (09:29 -0400)
commit095b30cbf976b6c82a10c16bef76fa5b4c03f658
treedb619c22de158356b654092620ad4c63c258a16e
parente861b62154173b730c3fd8ca040641fba8870bb6
test-fileio: use random name for written file

If two instances of test-fileio were run in parallel,
they could fail when trying to write the same file.
This predictable name in /tmp/ wasn't actually a security
issue, because write_env_file would not follow symlinks,
so this could be an issue only when running tests in
parallel.
src/test/test-fileio.c