emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [patch][test] Avoid writes to non-temp test-example files


From: Nick Dokos
Subject: Re: [O] [patch][test] Avoid writes to non-temp test-example files
Date: Thu, 05 Jan 2012 10:31:52 -0500

Martyn Jago <address@hidden> wrote:

> Nick Dokos <address@hidden> writes:
> 
> > Martyn Jago <address@hidden> 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.
> 

Great - thanks!

Nick




reply via email to

[Prev in Thread] Current Thread [Next in Thread]