aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPhilipp Stephani2022-01-13 12:55:06 +0100
committerPhilipp Stephani2022-01-13 13:52:40 +0100
commit34ca4ff9a52d38250f70f578fd045490b4eef4f9 (patch)
tree54fcdbee2e72cd52cf0b5c87166d3f17502d9a49 /test
parent3c06c37a8bc99797bebccebf27f4c9b61c52df4b (diff)
downloademacs-34ca4ff9a52d38250f70f578fd045490b4eef4f9.tar.gz
emacs-34ca4ff9a52d38250f70f578fd045490b4eef4f9.zip
Fix Edebug specification for inline functions (Bug#53068).
* lisp/emacs-lisp/inline.el (inline-quote): Fix Edebug specification. * test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-inline): New unit test.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/edebug-tests.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/edebug-tests.el b/test/lisp/emacs-lisp/edebug-tests.el
index 92f63ec7880..4aae2870a3a 100644
--- a/test/lisp/emacs-lisp/edebug-tests.el
+++ b/test/lisp/emacs-lisp/edebug-tests.el
@@ -1093,5 +1093,15 @@ This avoids potential duplicate definitions (Bug#41988)."
1093 (edebug-new-definition name)))) 1093 (edebug-new-definition name))))
1094 (should-error (eval-buffer) :type 'invalid-read-syntax)))) 1094 (should-error (eval-buffer) :type 'invalid-read-syntax))))
1095 1095
1096(ert-deftest edebug-tests-inline ()
1097 "Check that Edebug can instrument inline functions (Bug#53068)."
1098 (with-temp-buffer
1099 (print '(define-inline edebug-tests-inline (arg)
1100 (inline-quote ,arg))
1101 (current-buffer))
1102 (let ((edebug-all-defs t)
1103 (edebug-initial-mode 'Go-nonstop))
1104 (eval-buffer))))
1105
1096(provide 'edebug-tests) 1106(provide 'edebug-tests)
1097;;; edebug-tests.el ends here 1107;;; edebug-tests.el ends here