From mboxrd@z Thu Jan  1 00:00:00 1970
From: Brian Wightman <MidLifeXis@wightmanfam.org>
Subject: Re: Temp files from testing are permanent...
Date: Wed, 15 Feb 2012 12:02:49 -0600
Message-ID: <CALbR621iueL3viirJ85Pqbsxtzs3i7XxkrSRvnN-dfj6krkB4g@mail.gmail.com>
References: <8762f9w9l3.fsf@Rainer.invalid> <87sjidovpo.fsf@avasys.jp>
	<877gzof2e1.fsf@Rainer.invalid>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from eggs.gnu.org ([140.186.70.92]:36269)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btwightman@gmail.com>) id 1RxjBw-0000hp-7m
	for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 13:03:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <btwightman@gmail.com>) id 1RxjBr-0004hd-3J
	for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 13:02:56 -0500
Received: from mail-pw0-f41.google.com ([209.85.160.41]:36189)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <btwightman@gmail.com>) id 1RxjBq-0004hZ-NQ
	for emacs-orgmode@gnu.org; Wed, 15 Feb 2012 13:02:51 -0500
Received: by pbcwz17 with SMTP id wz17so1733257pbc.0
	for <emacs-orgmode@gnu.org>; Wed, 15 Feb 2012 10:02:49 -0800 (PST)
In-Reply-To: <877gzof2e1.fsf@Rainer.invalid>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=subscribe>
Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org
To: Org Mode List <emacs-orgmode@gnu.org>

On Wed, Feb 15, 2012 at 11:11 AM, Achim Gratz <Stromeko@nexgo.de> wrote:
> Olaf Meeuwissen <olaf.meeuwissen@avasys.jp> writes:
>> If running `make check` (or similar) creates these files, `make clean`
>> (or similar) should clean them up.
>
> I was asking that question to decide whether I do need to extend my
> Makefile fork to handle the cleanup or if the testsuite needs to be
> called differently to avoid leaving these stale files. =A0... =A0It would
> also seem logical that for debugging purposes one could leave the files
> around.

If created with make-temp-file, and created in the system-configured
$TMPDIR directory, I would urge (wearing my sysadmin hat) that they
get purged at the end of the test run, unless told to do otherwise.
If created in the build/test directory, then either make clean or
immediate purge seems reasonable.

Files created in the system $TMPDIR are not meant (caution: purist
view) to remain beyond the execution of the program (or set of
programs).  Some OS variants are set up to purge the $TMPDIR on
reboot, login, or at other times, and some even store it in a virtual
memory backed filesystem.  When performing as a sysadmin, finding that
an application has littered a (usually) limited system resource such
as the system $TMPDIR with files that are no longer useful is a minor
irritant at best, to a crash-inducing resource consumer at worst.

Just my $0.02 if you are taking donations.

Brian