tests: Improve temporary directory handling.
authorJustus Winter <justus@g10code.com>
Wed, 10 Aug 2016 09:54:11 +0000 (11:54 +0200)
committerJustus Winter <justus@g10code.com>
Wed, 10 Aug 2016 09:59:42 +0000 (11:59 +0200)
commitd9240a3a4688c263632b4168ae2e04363bc91a3a
tree5ba18b4d8148d23c3f2494ac5219df0f3528a4c2
parentefe973dab7f69e2b1309446b2fbcd47ce0305399
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>
tests/gpgscm/ffi.c
tests/gpgscm/tests.scm
tests/openpgp/run-tests.scm