Subject: [Roi Martin] [PATCH] Fix 'Skip' behavior in erts files

From: Stefan Kangas <[email-masked]>
Date: Fri, 7 Mar 2025 19:37:30 +0000

Forwarding this so that we don't lose track of it.

-------------------- Start of forwarded message --------------------
From: Roi Martin <[email-masked]>
To: [email-masked]
Subject: [PATCH] Fix 'Skip' behavior in erts files
Date: Thu, 06 Mar 2025 21:06:24 +0100
From ea377a261af6edfd5ce12418a23872bf8dbcc0d6 Mon Sep 17 00:00:00 2001
From: Roi Martin <[email-masked]>
Date: Thu, 6 Mar 2025 20:26:46 +0100
Subject: [PATCH] Fix 'Skip' behavior in erts files

* lisp/emacs-lisp/ert.el (ert-test--erts-test): Fix 'Skip' behavior in
erts files, so only the test case where it is specified is skipped.

Copyright-paperwork-exempt: yes
---
 lisp/emacs-lisp/ert.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/ert.el b/lisp/emacs-lisp/ert.el
index c57bd0a69e2f..eedff982940f 100644
--- a/lisp/emacs-lisp/ert.el
+++ b/lisp/emacs-lisp/ert.el
@@ -2901,7 +2901,7 @@ ert-test--erts-test
     (if (and skip
              (eval (car (read-from-string skip))))
         ;; Skipping this test.
-        ()
+        (goto-char end-after)
       ;; Do the test.
       (goto-char end-after)
       ;; We have a separate after section.
-- 
2.48.1