]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid invalid read syntax errors due to 'ert-with-test-buffer'
authorGemini Lasswell <gazally@runbox.com>
Sat, 4 Feb 2017 11:18:29 +0000 (13:18 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Feb 2017 11:18:29 +0000 (13:18 +0200)
* lisp/emacs-lisp/ert-x.el (ert-with-test-buffer): Fix the
'declare' form.  (Bug#24722)

lisp/emacs-lisp/ert-x.el

index 7d99cb3027496448212f356ccd8e3935e3569d93..8530253d5b498c14c689c8fdbf397925240c843d 100644 (file)
@@ -97,7 +97,7 @@ To be used in ERT tests.  If BODY finishes successfully, the test
 buffer is killed; if there is an error, the test buffer is kept
 around on error for further inspection.  Its name is derived from
 the name of the test and the result of NAME-FORM."
-  (declare (debug ((form) body))
+  (declare (debug ((":name" form) body))
            (indent 1))
   `(ert--call-with-test-buffer ,name-form (lambda () ,@body)))