Nick Dokos <nicholas.do...@hp.com> writes: > Martyn Jago <martyn.j...@btinternet.com> wrote: > >> >> Attached is a patch to modify all tests that currently write to non-temp >> test-example files such as `testing/babel.org'. Instead, the tests now >> write to temp files, which are thrown away at the conclusion of the >> test. >> > > Are the temp files kept if the test fails? IME, that's a useful debugging aid. > > Nick > >> All tests still pass. >> >> HTH >> >> Best, Martyn >>
If a test fails (or breaks in some way) and the temp-file has been created, it remains in the `temporary-file-directory' (the test system uses the standard Emacs make-temp-file mechanism). The file is referenced in the ert failure backtrace, and may be viewed in Emacs (press `b' on the failure in ert), although there is usually enough information in the backtrace / test-case to point to the failure. Emacs takes care of removing the old tmp files over time. Best, Martyn