0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-25 14:32:52 +00:00

testing/lisp/test-ob-tangle.el: Avoid interaction in test

* testing/lisp/test-ob-tangle.el (ob-tangle/detangle-false-positive):
Unset modification flag from buffer to kill
(testing/examples/babel.org) in tear down step of test to avoid Emacs
asking for confirmation during interactive testing from within Emacs.
This commit is contained in:
Evgenii Klimov 2023-07-16 13:14:38 +01:00 committed by Ihor Radchenko
parent 36c254ae30
commit d6f3aed7b1
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -565,6 +565,8 @@ another block
(should (equal (string-trim (org-element-property
:value (org-element-at-point)))
";; detangle changes"))))
(with-current-buffer buffer
(set-buffer-modified-p nil))
(kill-buffer buffer))))
(provide 'test-ob-tangle)