unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: emacs-devel@gnu.org
Cc: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: master 291085a2a6: (Fmake_finalizer): Check the arg is a function
Date: Fri, 31 Dec 2021 13:24:02 +0100	[thread overview]
Message-ID: <87h7apdkt9.fsf@gmx.de> (raw)
In-Reply-To: <20211231051612.BC467C002EE@vcs2.savannah.gnu.org> (Stefan Monnier via Mailing list for Emacs changes's message of "Fri, 31 Dec 2021 00:16:12 -0500 (EST)")

Stefan Monnier via Mailing list for Emacs changes <emacs-diffs@gnu.org>
writes:

Hi Stefan,

> branch: master
> commit 291085a2a61d7596e6f3e3152247198fdf85da26
> Author: Stefan Monnier <monnier@iro.umontreal.ca>
> Commit: Stefan Monnier <monnier@iro.umontreal.ca>
>
>     (Fmake_finalizer): Check the arg is a function
>
>     * src/eval.c (syms_of_eval): Add `Qfunctionp`.
>     * src/alloc.c (Fmake_finalizer): Check the arg is a function.

This fires an error:

--8<---------------cut here---------------start------------->8---
$ make -C test alloc-tests
make: Entering directory '/usr/local/src/emacs/test'
make[1]: Entering directory '/usr/local/src/emacs/test'
  GEN      src/alloc-tests.log
Running 5 tests (2021-12-31 13:19:55+0100, selector `(not (or (tag :unstable) (tag :nativecomp)))')
   passed  1/5  aset-nbytes-change (0.000107 sec)
Test finalizer-object-type backtrace:
  signal(wrong-type-argument (functionp nil))
  apply(signal (wrong-type-argument (functionp nil)))
  (setq value-2 (apply fn-0 args-1))
  (unwind-protect (setq value-2 (apply fn-0 args-1)) (setq form-descri
  (if (unwind-protect (setq value-2 (apply fn-0 args-1)) (setq form-de
  (let (form-description-4) (if (unwind-protect (setq value-2 (apply f
  (let ((value-2 'ert-form-evaluation-aborted-3)) (let (form-descripti
  (let* ((fn-0 #'equal) (args-1 (condition-case err (let ((signal-hook
  (closure (t) nil (let* ((fn-0 #'equal) (args-1 (condition-case err (
  ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test
  ert-run-test(#s(ert-test :name finalizer-object-type :documentation
  ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :unstabl
  ert-run-tests((not (or (tag :unstable) (tag :nativecomp))) #f(compil
  ert-run-tests-batch((not (or (tag :unstable) (tag :nativecomp))))
  ert-run-tests-batch-and-exit((not (or (tag :unstable) (tag :nativeco
  eval((ert-run-tests-batch-and-exit '(not (or (tag :unstable) (tag :n
  command-line-1(("-L" ":." "-L" "./../../elpa/packages/url-http-ntlm/
  command-line()
  normal-top-level()
Test finalizer-object-type condition:
    (wrong-type-argument functionp nil)
   FAILED  2/5  finalizer-object-type (0.000099 sec)
   passed  3/5  record-1 (0.000070 sec)
   passed  4/5  record-2 (0.000042 sec)
   passed  5/5  record-3 (0.000050 sec)

Ran 5 tests, 4 results as expected, 1 unexpected (2021-12-31 13:19:55+0100, 0.111531 sec)

1 unexpected results:
   FAILED  finalizer-object-type
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.



       reply	other threads:[~2021-12-31 12:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <164092777246.5319.12726126534253040404@vcs2.savannah.gnu.org>
     [not found] ` <20211231051612.BC467C002EE@vcs2.savannah.gnu.org>
2021-12-31 12:24   ` Michael Albinus [this message]
2021-12-31 15:51     ` master 291085a2a6: (Fmake_finalizer): Check the arg is a function 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=87h7apdkt9.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).