🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gmane.emacs.devel
1 messages
1 total messages Started by Jens Schmidt Sat, 26 Aug 2023 22:21
ERT, EPG, and GnuPG 2.4.*
#307253
Author: Jens Schmidt
Date: Sat, 26 Aug 2023 22:21
34 lines
1216 bytes
Still working, slowly but steadily, on bug#63627, where one aspect is
to provide ERT tests for plstore.el.

Now GnuPG 2.4.* can suffer from GnuPG bug T6481, which would make any
ERT tests hang.  At least one GNU/Linux distribution provides patched
GnuPG versions 2.4.* that do not hang with Emacs, though.

I see the following options to avoid hangs during tests:

- Check GnuPG version and unconditionally skip tests for GnuPG 2.4.*.

- Control test execution by some external means (environment variable?)
  for GnuPG 2.4.*.

- Detect hanging GnuPG versions with some timeout logic along the
  lines of the following (which actually works):

    (let ((epg-pinentry-mode 'loopback))
      (make-thread
       (lambda ()
         (sit-for 1)
         (when-let ((process
                     (cl-find-if
                      (lambda (process)
                        (eq (process-filter process) #'epg--process-filter))
                      (process-list)))
                    ((eq (process-status process) 'run)))
           (kill-process process))))
      (with-temp-buffer
        (setq-local epa-file-encrypt-to '("test-key"))
        (write-region (point-min) (point-max) "test.gpg")))

What do you think?

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads