all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Ludlam <ericludlam@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Philipp <p.stephani2@gmail.com>, Eric Ludlam <zappo@gnu.org>,
	42533@debbugs.gnu.org
Subject: bug#42533: 28.0.50; srecode-utest-project test failing on macOS
Date: Sat, 15 Aug 2020 16:18:03 -0400	[thread overview]
Message-ID: <CACXnnKPr9FMMWeCFiLvBJQKyUVLf77T9yUxXvpE2YUnW1+o_RA@mail.gmail.com> (raw)
In-Reply-To: <87ft8u1s4f.fsf@gnus.org>

[-- Attachment #1: Type: text/plain, Size: 2290 bytes --]

Srecode loads in templates for various modes and applications into a map.
That particular test is verifying that the template associated with
srecode's template mode for the application 'tests' was found.

There are 2 templates for the 'test' application in:
 etc/srecode/proj-test.srt.
 etc/srecode/test.srt

Plus the template template:
 etc/srecode/template.srt

You can use:
M-x srecode-get-maps RET

to list all the templates discovered during srecode initialization on the
different platforms to see what is different.

The first part of the list are the mode specific template files.  After are
the application templates, and tests app should be in there.  (It was first
for me when I just tried it.)

What *might* be going on is ~/.emacs.d/srecode-map.el could be out of date
for whatever user/machine is running the test.  Discovering all the
templates is a bit slow, and srecode will rescan files that change but
doesn't know what files to scan based on file name, so the map and the
cache was meant to speed things up.  You can force a reload by passing
non-nil into srecode-get-maps.   The earlier test srecode-utest-map-reset
should do that, but as I look at the code, I don't see that it is.  In the
old cedet test suite, all the tests were run in a forced order w/out ert
(it wasn't around, or I didn't know about it when I was writing tests the
first time.)  Thus, there may be some order dependency I don't know about.

Hopefully this is helpful.  I don't usually have this much time to poke
around in emacs anymore.  You caught me on a good day. :)
Eric

On Mon, Aug 10, 2020 at 10:40 AM Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
> > I've tried to follow the logic of the test, but I'm failing to see how
> > the code diverges under Linux and Macos...  Perhaps Eric has some input
> > here?
>
> I spent about an hour on this last night, comparing what happens on
> Macos and Debian (where this test doesn't fail), and I wasn't
> successful.  This test is more of an integration test than a unit test
> in that it doesn't tell you much about where deep in the srecode
> machinery things go wrong, unfortunately...
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
>

[-- Attachment #2: Type: text/html, Size: 3096 bytes --]

  reply	other threads:[~2020-08-15 20:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-25 18:32 bug#42533: 28.0.50; srecode-utest-project test failing on macOS Philipp
2020-08-04 15:14 ` Lars Ingebrigtsen
2020-08-10 14:40   ` Lars Ingebrigtsen
2020-08-15 20:18     ` Eric Ludlam [this message]
2020-08-16 11:41       ` Lars Ingebrigtsen
2020-08-16 14:41         ` Eric Ludlam
2020-08-18 16:59           ` Lars Ingebrigtsen
2020-08-18 17:57             ` Lars Ingebrigtsen
2020-08-30 19:35               ` Eric Ludlam

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=CACXnnKPr9FMMWeCFiLvBJQKyUVLf77T9yUxXvpE2YUnW1+o_RA@mail.gmail.com \
    --to=ericludlam@gmail.com \
    --cc=42533@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=p.stephani2@gmail.com \
    --cc=zappo@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.