diff options
| author | Justus Winter <[email protected]> | 2016-08-10 09:54:11 +0000 |
|---|---|---|
| committer | Justus Winter <[email protected]> | 2016-08-10 09:59:42 +0000 |
| commit | d9240a3a4688c263632b4168ae2e04363bc91a3a (patch) | |
| tree | 5ba18b4d8148d23c3f2494ac5219df0f3528a4c2 /tests/gpgscm/ffi.c | |
| parent | gpgscm: Make the name of foreign functions more unique. (diff) | |
| download | gnupg-d9240a3a4688c263632b4168ae2e04363bc91a3a.tar.gz gnupg-d9240a3a4688c263632b4168ae2e04363bc91a3a.zip | |
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 <[email protected]>
Diffstat (limited to 'tests/gpgscm/ffi.c')
| -rw-r--r-- | tests/gpgscm/ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/ffi.c b/tests/gpgscm/ffi.c index c37bf1daa..57de28614 100644 --- a/tests/gpgscm/ffi.c +++ b/tests/gpgscm/ffi.c @@ -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); |
