Subject: bug#47138: 28.0.50; comp-tests suite creates a /nonexistent directory

From: Andrea Corallo <[email-masked]>
Date: Wed, 24 Mar 2021 14:47:27 +0000

Eli Zaretskii <[email-masked]> writes:

>> Cc: [email-masked]
>> Date: Sun, 21 Mar 2021 17:30:36 +0000
>> From:  Andrea Corallo via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <[email-masked]>
>> 
>> if we have a better idea on how to detect we are running the testsuite
>> we can use that in place.  Maybe defining a dedicated env variable
>> during the build?
>
> Howe about EMACS_ELN_PATH, similar to EMACS_LOADPATH?  Then the test
> Makefile could set it for the src/comp-tests test.

That's an idea but how can we create a temporary directory to set into
EMACS_ELN_PATH from the build system?

I was thinking more to an env far to check for to replace the

(equal (getenv "HOME") "/nonexistent")

we have in `normal-top-level' with:

(getenv "TESTSUITE_RUN")

Thanks

  Andrea