emacs-31 3e7908fe233: ; Fix two tests

Eli Zaretskii <[email protected]> Tue, 7 Jul 2026 07:05:07 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: emacs-31
commit 3e7908fe2332f71d6768fbde7af9b11218985b5e
Author: Eli Zaretskii <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    ; Fix two tests
    
    * test/manual/cedet/semantic-tests.el (semanticdb-test-gnu-global):
    * test/src/undo-tests.el (undo-test0): Fix signaling an error.
    Suggested by Lin Sun <[email protected]> in bug#81371.
---
 test/manual/cedet/semantic-tests.el | 2 +-
 test/src/undo-tests.el              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/manual/cedet/semantic-tests.el b/test/manual/cedet/semantic-tests.el
index 4bd29ebcfee..48b747f79f8 100644
--- a/test/manual/cedet/semantic-tests.el
+++ b/test/manual/cedet/semantic-tests.el
@@ -100,7 +100,7 @@ global enabled."
     (condition-case err
 	(semanticdb-enable-gnu-global-in-buffer)
       (error (if standardfile
-		 (error err)
+		 (signal err)
 	       (save-match-data
 		 (set-buffer (find-file-noselect semanticdb-test-gnu-global-startfile)))
 	       (semanticdb-enable-gnu-global-in-buffer))))
diff --git a/test/src/undo-tests.el b/test/src/undo-tests.el
index 55d3bfe8930..24fd47b88a7 100644
--- a/test/src/undo-tests.el
+++ b/test/src/undo-tests.el
@@ -58,7 +58,7 @@
       (error
        (unless (string= "No further undo information"
                         (cadr err))
-         (error err))))
+         (signal err))))
     (undo-boundary)
     (insert "This")
     (undo-boundary)