unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 677d5e23033f26c5772e5e3e5812f8436d941472 1479 bytes (raw)
name: gnu/packages/patches/emacs-buttercup-fix-native-comp-pretty-test.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
 
From 0f822190360a99bac6b532058beb5e20cb2673c3 Mon Sep 17 00:00:00 2001
From: Nicolas Graves <ngraves@ngraves.fr>
Date: Sun, 1 Oct 2023 20:20:03 +0200
Subject: [PATCH] test: Change `pretty' test regexp to pass tests on emacs 30.

---
 tests/test-buttercup.el | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/tests/test-buttercup.el b/tests/test-buttercup.el
index d68787b..a2e3ba7 100644
--- a/tests/test-buttercup.el
+++ b/tests/test-buttercup.el
@@ -2009,9 +2009,15 @@ text properties using `ansi-color-apply'."
                   "suite bc-bt-backtrace\n"
                   "\n"
                   "Traceback (most recent call last):\n"
-                  "λ (bc-bt-foo \"" (regex ,long-string) "\")\n"
-                  "λ (bc-bt-bar \"" (regex ,long-string) "\")\n"
-                  "λ (bc-bt-baz \"" (regex ,long-string) "\")\n"
+                  (seq
+                   "λ (bc-bt-foo \"" (regex ,long-string) "\")"
+                   (optional "\n"))
+                  (seq
+                   "λ (bc-bt-bar \"" (regex ,long-string) "\")"
+                   (optional "\n"))
+                  (seq
+                   "λ (bc-bt-baz \"" (regex ,long-string) "\")"
+                   (optional "\n"))
                   (* (seq (or ?M ?λ) " (" (* not-newline) ; frame start
                           (*? (seq "\n   " (* not-newline))) ; any number of pp lines
                           (* not-newline) ")\n")) ;; frame end

debug log:

solving 677d5e2303 ...
found 677d5e2303 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.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).