From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 47138@debbugs.gnu.org
Subject: bug#47138: 28.0.50; comp-tests suite creates a /nonexistent directory
Date: Sun, 21 Mar 2021 16:28:12 +0000 [thread overview]
Message-ID: <xjfk0q0tqsj.fsf@sdf.org> (raw)
In-Reply-To: <83o8fcbxur.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 21 Mar 2021 12:33:00 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Andrea Corallo <akrl@sdf.org>
>> Cc: 47138@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
next prev parent reply other threads:[~2021-03-21 16:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-14 15:59 bug#47138: 28.0.50; comp-tests suite creates a /nonexistent directory Eli Zaretskii
2021-03-16 17:32 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-16 18:36 ` Eli Zaretskii
2021-03-21 8:43 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-21 10:33 ` Eli Zaretskii
2021-03-21 16:28 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-03-21 16:57 ` Eli Zaretskii
2021-03-21 18:53 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-21 17:17 ` Glenn Morris
2021-03-21 17:30 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-03-21 19:00 ` Eli Zaretskii
2021-03-24 14:47 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-24 12:30 ` Lars Ingebrigtsen
2022-05-24 14:16 ` Eli Zaretskii
2022-05-24 14:18 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xjfk0q0tqsj.fsf@sdf.org \
--to=bug-gnu-emacs@gnu.org \
--cc=47138@debbugs.gnu.org \
--cc=akrl@sdf.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).