From 9ee74b68e688b474881768a5ae59d857397c8fbf Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 10 Aug 2022 12:32:52 +0200 Subject: [PATCH] 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. --- tests/gpg/t-edit-sign.c | 6 ++---- 1 file 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; }