aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gpgscm/main.c
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/main.c
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/main.c')
-rw-r--r--tests/gpgscm/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gpgscm/main.c b/tests/gpgscm/main.c
index 02681fffe..f7c6b0d14 100644
--- a/tests/gpgscm/main.c
+++ b/tests/gpgscm/main.c
@@ -263,7 +263,8 @@ main (int argc, char **argv)
if (! err)
err = load (sc, "ffi.scm", 0, 1);
if (! err)
- err = ffi_init (sc, argv0, argc, (const char **) argv);
+ err = ffi_init (sc, argv0, script ? script : "interactive",
+ argc, (const char **) argv);
if (! err)
err = load (sc, "lib.scm", 0, 1);
if (! err)