GNU bug report logs - #51409
29.0.50; Basic erts functionality seems to be broken

Previous Next

Package: emacs;

Reported by: akater <nuclearspace <at> gmail.com>

Date: Tue, 26 Oct 2021 11:22:01 UTC

Severity: normal

Found in version 29.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


View this message in rfc822 format

From: akater <nuclearspace <at> gmail.com>
To: 51409 <at> debbugs.gnu.org
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>
Subject: bug#51409: 29.0.50; Basic erts functionality seems to be broken
Date: Tue, 26 Oct 2021 11:09:58 +0000
I can't make some basic erts tests work; this looks like an erts bug.

In the following file, the specified result of the first test is what
you'd see in a emacs-lisp-mode buffer.  When the test is run, you don't
get this result.

Furthermore, load the following file in emacs -Q and run
(ert-run-tests-interactively t).  I observe, on the recent build from
master, that the /resulting/ after- string is different depending on
what the /specified/ after- string was, which certainly should not
happen.

This is true in two instances of Emacs built with vastly different
settings so I omitted Emacs build details.

;;; -*- lexical-binding: t; -*-

(require 'ert)
(require 'ert-x)

(with-current-buffer (find-file-noselect "/tmp/erts-tests.erts")
  (erase-buffer)
  (insert
   "Name: erts-with-basic-newline
Code: (lambda () (emacs-lisp-mode) (newline nil t))
Point-Char: |
No-Before-Newline: t
No-After-Newline: t

=-=
(whatever|
=-=
(whatever
 |
=-=-=
")
  (save-buffer))

(ert-deftest my-erts-tests ()
  (ert-test-erts-file (ert-resource-file "/tmp/erts-tests.erts")))

(with-current-buffer (find-file-noselect "/tmp/erts-tests-with-garbage.erts")
  (erase-buffer)
  (insert
   "Name: erts-with-basic-newline-and-garbabe
Code: (lambda () (emacs-lisp-mode) (newline nil t))
Point-Char: |
No-Before-Newline: t
No-After-Newline: t

=-=
(whatever|
=-=
(whatever
should-not-be-here |
=-=-=
")
  (save-buffer))

(ert-deftest my-erts-tests-with-garbage ()
  (ert-test-erts-file (ert-resource-file "/tmp/erts-tests-with-garbage.erts")))





This bug report was last modified 3 years and 204 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.