]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix an epg test for recent GnuPG versions (bug#33439)
authorGlenn Morris <rgm@gnu.org>
Sat, 15 Dec 2018 01:09:02 +0000 (20:09 -0500)
committerGlenn Morris <rgm@gnu.org>
Sat, 15 Dec 2018 01:09:02 +0000 (20:09 -0500)
* test/lisp/epg-tests.el (epg-decrypt-1):
Tell recent GnuPG (e.g. 2.2.11) not to worry about missing MDC.

test/lisp/epg-tests.el

index 0fe15017dd086d146121b41037804fa3f1fdba25..f2cc351d70b2f9d9c956da1b85a7aff1dc1ade25 100644 (file)
@@ -87,6 +87,8 @@
 (ert-deftest epg-decrypt-1 ()
   (skip-unless (epg-tests-find-usable-gpg-configuration 'require-passphrase))
   (with-epg-tests (:require-passphrase t)
+    (with-temp-file (expand-file-name "gpg.conf" epg-tests-home-directory)
+      (insert "ignore-mdc-error"))
     (should (equal "test"
                   (epg-decrypt-string epg-tests-context "\
 -----BEGIN PGP MESSAGE-----