aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/ffi.h
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-09-19 13:59:19 +0000
committerJustus Winter <[email protected]>2016-09-19 16:49:17 +0000
commit83a406b38a21d0eeb4963db824a27783c212d2fb (patch)
tree3b1d927e45962644a92b4056c88aa76795c693bd /tests/gpgscm/ffi.h
parentgpg: Fix regression in fingerprint printing. (diff)
downloadgnupg-83a406b38a21d0eeb4963db824a27783c212d2fb.tar.gz
gnupg-83a406b38a21d0eeb4963db824a27783c212d2fb.zip
tests: Use descriptive temporary file names.
* tests/gpgscm/ffi.c (do_get_isotime): New function. (ffi_init): Add parameter 'scriptname', bind new function and scriptname. * tests/gpgscm/ffi.h (ffi_init): Update prototype. * tests/gpgscm/main.c (main): Hand in the script name. * tests/gpgscm/tests.scm (mkdtemp): Use current time and script name for the names of temporary directories. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to 'tests/gpgscm/ffi.h')
-rw-r--r--tests/gpgscm/ffi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gpgscm/ffi.h b/tests/gpgscm/ffi.h
index 02dd99d59..9bd710fbf 100644
--- a/tests/gpgscm/ffi.h
+++ b/tests/gpgscm/ffi.h
@@ -24,7 +24,7 @@
#include <gpg-error.h>
#include "scheme.h"
-gpg_error_t ffi_init (scheme *sc, const char *argv0,
+gpg_error_t ffi_init (scheme *sc, const char *argv0, const char *scriptname,
int argc, const char **argv);
#endif /* GPGSCM_FFI_H */