GNU bug report logs -
#47138
[feature/native-comp] comp-tests suite creates a /nonexistent directory
Previous Next
Reported by: Eli Zaretskii <eliz <at> gnu.org>
Date: Sun, 14 Mar 2021 16:00:02 UTC
Severity: normal
Tags: moreinfo
Found in version 28.0.50
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 47138 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Andrea Corallo <akrl <at> sdf.org>
>> Cc: 47138 <at> debbugs.gnu.org
>> Date: Sun, 21 Mar 2021 08:43:36 +0000
>>
>> > $ cd test
>> > $ make src/comp-tests SELECTOR='(not comp-tests-bootstrap)'
>>
>> Is /nonexistent... really created in the root?
>
> Yes. (Well, no, because MinGW maps "/" to some place else, but that's
> an internal detail of how MinGW and MSYS work with Posix file names.)
>
>> AFAICS on my system the usual 'native-lisp' directory is used for
>> these compilations.
>
> Really? that's peculiar, because test/Makefile says:
>
> # Set HOME to a nonexistent directory to prevent tests from accessing
> # it accidentally (e.g., popping up a gnupg dialog if ~/.authinfo.gpg
> # exists, or writing to ~/.bzr.log when running bzr commands).
> TEST_HOME = /nonexistent
> ...
> %.log: %.elc
> $(AM_V_at)${MKDIR_P} $(dir $@)
> $(AM_V_GEN)HOME=$(TEST_HOME) $(emacs) \
> -l ert ${ert_opts} -l $(testloadfile) \
> $(TEST_RUN_ERT)
>
> Does Emacs on GNU/Linux ignore a nonexistent home directory, and uses
> the original one instead? That'd mean the above trick isn't working.
>
>> Might be this Windows specific?
>
> I hope not.
I see, the target directory for a newly compiled .eln is the first entry
in `comp-eln-load-path', so HOME is not accounted and the trick didn't
applied.
Okay af739863b0 when running the testsuite is adding in front of
`comp-eln-load-path' a temporary directory such that now all native
compilations tests are deposed and loaded there. Does is look like a
good solution?
Thanks
Andrea
This bug report was last modified 2 years and 364 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.