aboutsummaryrefslogtreecommitdiffstats
path: root/test/src/thread-tests.el
diff options
context:
space:
mode:
authorStefan Monnier2026-03-08 23:26:58 -0400
committerStefan Monnier2026-03-10 00:13:31 -0400
commitea5f15d09642435ecb645fc5dc7b84cc047ba8e6 (patch)
treed007e08c463aaa3a9743ad81c567f760f0e1db8d /test/src/thread-tests.el
parent3118a8c8b1a8d1a77de80da4b03c51c199c202f8 (diff)
downloademacs-ea5f15d09642435ecb645fc5dc7b84cc047ba8e6.tar.gz
emacs-ea5f15d09642435ecb645fc5dc7b84cc047ba8e6.zip
Fix `signal` calls where the data argument is not a list
* test/src/thread-tests.el (threads-join-error): * test/src/emacs-module-resources/mod-test.c (Fmod_test_signal): * src/print.c (print_bind_overrides): * lisp/url/url-future.el (url-future-finish, url-future-errored) (url-future-call, url-future-cancel): Make sure signal's data is a list. * test/src/emacs-module-tests.el (mod-test-non-local-exit-signal-test): Adjust accordingly.
Diffstat (limited to 'test/src/thread-tests.el')
-rw-r--r--test/src/thread-tests.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/thread-tests.el b/test/src/thread-tests.el
index 9cbe1f3a1aa..c575f13b488 100644
--- a/test/src/thread-tests.el
+++ b/test/src/thread-tests.el
@@ -122,10 +122,10 @@
122 (skip-unless (featurep 'threads)) 122 (skip-unless (featurep 'threads))
123 (let ((thread (make-thread #'threads-thread-sleeps)) 123 (let ((thread (make-thread #'threads-thread-sleeps))
124 err) 124 err)
125 (thread-signal thread 'error "Error signal for thread") 125 (thread-signal thread 'error '("Error signal for thread"))
126 (thread-yield) 126 (thread-yield)
127 (setq err (should-error (thread-join thread))) 127 (setq err (should-error (thread-join thread)))
128 (should (equal err '(error . "Error signal for thread"))))) 128 (should (equal err '(error "Error signal for thread")))))
129 129
130(defvar threads-test-binding nil) 130(defvar threads-test-binding nil)
131 131