From: Lars Ingebrigtsen <larsi@gnus.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 42534@debbugs.gnu.org, 37615@debbugs.gnu.org,
Artur Malabarba <bruce.connor.am@gmail.com>
Subject: bug#42534: 28.0.50; package-test-macro-compilation test fails on macOS
Date: Fri, 25 Dec 2020 21:49:31 +0100 [thread overview]
Message-ID: <87a6u1ehlw.fsf@gnus.org> (raw)
In-Reply-To: <83tus9mxcm.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Dec 2020 22:42:17 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
> I cannot understand why this happens on MS-Windows, but not on
> GNU/Linux.
The test that fails is this:
(ert-deftest package-test-macro-compilation ()
"Install a package which includes a dependency."
(with-package-test (:basedir (ert-resource-directory))
(package-install-file (expand-file-name "macro-problem-package-1.0/"))
(require 'macro-problem)
;; `macro-problem-func' uses a macro from `macro-aux'.
(should (equal (macro-problem-func) '(progn a b)))
(package-install-file (expand-file-name "macro-problem-package-2.0/"))
;; After upgrading, `macro-problem-func' depends on a new version
;; of the macro from `macro-aux'.
(should (equal (macro-problem-func) '(1 b)))
;; `macro-problem-10-and-90' depends on an entirely new macro from `macro-aux'.
(should (equal (macro-problem-10-and-90) '(10 90)))))
The thing that doesn't work is:
(package-install-file (expand-file-name "macro-problem-package-2.0/"))
This does not reload the files, and that's because
package--load-files-for-activation doesn't reload them. Which is
because package--list-loaded-files doesn't identify the files as
something that needs to be reloaded, as far as I can tell.
That function does a whole lot of comparison of file paths, and my guess
is that whatever it's doing (I'm having a hard time following the logic)
only works on GNU/Linux systems.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-12-25 20:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-04 8:13 bug#37615: 27.0.50; package-test-macro-compilation fails Eli Zaretskii
2019-10-04 8:23 ` Stefan Kangas
2019-10-04 8:47 ` Robert Pluim
2019-10-04 8:55 ` Eli Zaretskii
2020-12-25 6:29 ` bug#37615: bug#42534: 28.0.50; package-test-macro-compilation test fails on macOS Lars Ingebrigtsen
2020-12-25 7:54 ` Eli Zaretskii
2020-12-25 19:37 ` Lars Ingebrigtsen
2020-12-25 20:42 ` Eli Zaretskii
2020-12-25 20:49 ` Lars Ingebrigtsen [this message]
2020-12-25 21:43 ` Lars Ingebrigtsen
2020-12-26 8:39 ` Eli Zaretskii
2020-12-26 22:00 ` Lars Ingebrigtsen
-- strict thread matches above, loose matches on Subject: below --
2020-07-25 18:35 Philipp
2020-12-25 6:27 ` Lars Ingebrigtsen
2020-12-25 11:03 ` Philipp Stephani
2020-12-25 20:29 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a6u1ehlw.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=37615@debbugs.gnu.org \
--cc=42534@debbugs.gnu.org \
--cc=bruce.connor.am@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.