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.
This commit is contained in:
Werner Koch 2022-08-10 12:32:52 +02:00
parent 5d91182c95
commit 9ee74b68e6
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -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;
}