mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
tests: Improve temporary directory handling.
* tests/gpgscm/ffi.c (ffi_init): Rename 'mkdtemp'. * tests/gpgscm/tests.scm (mkdtemp): New function that uses a sensible location and template if no arguments are given. (with-temporary-working-directory): Simplify accordingly. (make-temporary-file): Likewise. * tests/openpgp/run-tests.scm (run-tests-parallel-isolated): Likewise. (run-tests-sequential-isolated): Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
efe973dab7
commit
d9240a3a46
3 changed files with 14 additions and 5 deletions
|
@ -1248,7 +1248,7 @@ ffi_init (scheme *sc, const char *argv0, int argc, const char **argv)
|
|||
ffi_define_function (sc, open);
|
||||
ffi_define_function (sc, fdopen);
|
||||
ffi_define_function (sc, close);
|
||||
ffi_define_function (sc, mkdtemp);
|
||||
ffi_define_function_name (sc, "_mkdtemp", mkdtemp);
|
||||
ffi_define_function (sc, unlink);
|
||||
ffi_define_function (sc, unlink_recursively);
|
||||
ffi_define_function (sc, rename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue