delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/04/15/17:52:12

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3CBB4B5A.A84D61C7@phekda.freeserve.co.uk>
Date: Mon, 15 Apr 2002 22:51:22 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com, Jim Meyering <jim AT meyering DOT net>
Subject: Re: Fileutils 4.1 alpha 1 uploaded
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020414190622 DOT 237A-100000 AT is>
<3CB9A954 DOT 40EBBAEC AT phekda DOT freeserve DOT co DOT uk> <87g01yrmr7 DOT fsf AT pixie DOT eng DOT ascend DOT com>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Jim Meyering wrote:
[snip]
> How does my creation of a stem.$$ temporary _directory_ (in the current
> directory) cause trouble?  AFAICS (for the few tests I looked at), there
> is no risk that more than one of those little scripts will run at the
> same time, so there shouldn't be a problem on that front.

Some of the tests do not delete the directories the create. I guess that's a
bug in the scripts on DOS and I should try to diagnose those cases.

But if you want to debug the test failures under DOS, you could change the
tests to leave the test files rather than deleting them. Then it's possible
the names would collide, say if $$ == 11131 in the 1st run and $$ == 11198 in
the 2nd run. From this point-of-view it would be good if the temporary files
and directories could be renamed to aaaXXXXX where aaa = some prefix and XXXXX
= $$.

> Of course, if some tests create such a temporary directory in $TMPDIR,
> then that's a good reason to change it, and I'd appreciate patches that
> do that.

I'll take a look for any uses of $TMPDIR. Perhaps the 'df' uses it. I
certainly seem to remember it displaying something with $TMPDIR in it, when I
hadn't set $CANDIDATE_TMP_DIRS.
 
> I'm not too keen on mangling anything -- even temp-file names in test
> scripts -- to accommodate DOS's brain-dead 8.3 limitation.  Of course,
> if you find a clean way to fix all this without mangling things, I'll
> be a lot more receptive.
[snip]

How about doing the tests in subdirectories named after the tests? E.g.:
backup-file.tmp. Then the prefix wouldn't matter so much, since it's clear
from the directory name what test it's from. This would also have the
advantage that all the temporary files could be cleaned up easily, since
they'd be separate from the test scripts, Makefiles, etc.

Thanks, bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019