The use of the name tmpdir in the tests

Ruud van der Pas ruud.vanderpas@oracle.com
Thu Jun 15 21:53:28 GMT 2023


Hi team,

This is an absolute detail, but as I am working on the test suite
for gprofng, I noticed the use of a directory called "tmpdir".

I count about 155 .exp files across binutils that use it:

$ grep -sw tmpdir `find . -name "*".exp -print` | awk 'BEGIN {FS=":"} {print $1}' | uniq | wc
    155     155    6000
$

The thing is that in the case of gprofng at least, this is far from
a temporary directory. It is going to contain the generated experiment
data that is crucial for troubleshooting in case of a failure.

Of course we could place those experiments elsewhere, but my idea
was to give tmpdir a more meaningful name.

Are there any objections against doing so? For example, will 
certain scripts fail?

If not, any suggestion what would be a good name? I'm not that
creative so don't get any further than "results" or "expresults"
and am definitely open to suggestions.

Kind regards, Ruud


More information about the Binutils mailing list