summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2022-08-10 12:32:52 +0200
committerWerner Koch <wk@gnupg.org>2022-08-10 12:34:12 +0200
commit9ee74b68e688b474881768a5ae59d857397c8fbf (patch)
tree89e0186a8dec0d30f2992e098e5fb35a26b883db /tests
parent5d91182c955d128c8ff7cdd29189fc3ae06201d9 (diff)
downloadgpgme-9ee74b68e688b474881768a5ae59d857397c8fbf.tar.gz
tests: Make t-edit-sign more robust.
* tests/gpg/t-edit-sign.c (interact_fnc): Provide the default answer. -- A default answer to prompts should always be given.
Diffstat (limited to 'tests')
-rw-r--r--tests/gpg/t-edit-sign.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/gpg/t-edit-sign.c b/tests/gpg/t-edit-sign.c
index e0494c54..a3938b92 100644
--- a/tests/gpg/t-edit-sign.c
+++ b/tests/gpg/t-edit-sign.c
@@ -99,10 +99,8 @@ interact_fnc (void *opaque, const char *status, const char *args, int fd)
}
if (result)
- {
- gpgme_io_writen (fd, result, strlen (result));
- gpgme_io_writen (fd, "\n", 1);
- }
+ gpgme_io_writen (fd, result, strlen (result));
+ gpgme_io_writen (fd, "\n", 1);
return 0;
}