diff options
Diffstat (limited to 'test/lisp/obsolete/cl-tests.el')
-rw-r--r-- | test/lisp/obsolete/cl-tests.el | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/lisp/obsolete/cl-tests.el b/test/lisp/obsolete/cl-tests.el index 0e02e1ca1bc..0b8c1178f3a 100644 --- a/test/lisp/obsolete/cl-tests.el +++ b/test/lisp/obsolete/cl-tests.el @@ -27,10 +27,15 @@ +;; Hack to work around the ERT limitation that we can't reliably use +;; `with-suppressed-warnings' inside an `ert-deftest'. (Bug#36568) +(defun cl-tests-labels-test () + (with-suppressed-warnings ((obsolete labels)) + (funcall (labels ((foo () t)) + #'foo)))) + (ert-deftest labels-function-quoting () "Test that #'foo does the right thing in `labels'." ; Bug#31792. - (should (eq (funcall (labels ((foo () t)) - #'foo)) - t))) + (should (eq (cl-tests-labels-test) t))) ;;; cl-tests.el ends here |