Re: [gmime-devel] [PATCH 4/6] avoid trying to interact with the user session during test suites



Committed.

Thanks!

Jeff

On 12/2/2016 2:02 AM, Daniel Kahn Gillmor wrote:
---
  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;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]