]> git.eshelyaron.com Git - emacs.git/commit
Add generated suffix to test temp file names
authorStefan Kangas <stefan@marxist.se>
Sat, 6 Nov 2021 20:54:02 +0000 (21:54 +0100)
committerStefan Kangas <stefan@marxist.se>
Sun, 7 Nov 2021 00:54:30 +0000 (01:54 +0100)
commit5dd27fef5885bf0f6ec3b12bad7972276834ccfa
treebc982d44266a2113172406affe4e4a3a12bf2aca
parent9dfd945a2c2055b1af869a685eb2a667daf4daca
Add generated suffix to test temp file names

* lisp/emacs-lisp/ert-x.el
(ert-with-temp-file): Add temp file name suffix based on file name of
caller.  Reflow docstring.
(ert--with-temp-file-generate-suffix): New defun.
* test/lisp/emacs-lisp/ert-x-tests.el
(ert-x-tests--with-temp-file-generate-suffix): New test.
lisp/emacs-lisp/ert-x.el
test/lisp/emacs-lisp/ert-x-tests.el