---
 tests/testsuite.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/testsuite.c b/tests/testsuite.c
index acd36a5..9422e93 100644
--- a/tests/testsuite.c
+++ b/tests/testsuite.c
@@ -355,6 +355,11 @@ testsuite_setup_gpghome ()
        if (system ("/bin/mkdir ./tmp") != 0)
                return EXIT_FAILURE;
        g_setenv ("GNUPGHOME", "./tmp/.gnupg", 1);
+       /* disable the usual mechanisms gpg-agent uses for pinentry */
+       g_unsetenv ("DISPLAY");
+       g_unsetenv ("DBUS_SESSION_BUS_ADDRESS");
+       g_unsetenv ("GPG_TTY");
+
        if (system ("gpg --list-keys > /dev/null 2>&1") != 0)
                return EXIT_FAILURE;
        return EXIT_SUCCESS;
-- 
2.10.2

_______________________________________________
gmime-devel-list mailing list
gmime-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gmime-devel-list

Reply via email to