aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPo Lu2025-03-02 21:00:48 +0800
committerPo Lu2025-03-02 21:02:10 +0800
commite34d7a7c4eb90cde7a2dc55ac5a02fae303e5d0f (patch)
treead564ec0e1e0958eeac8ce5d0ce7c93664231938 /test
parent749e33bb481eedbefe0fd24124b446f9c47728d5 (diff)
downloademacs-e34d7a7c4eb90cde7a2dc55ac5a02fae303e5d0f.tar.gz
emacs-e34d7a7c4eb90cde7a2dc55ac5a02fae303e5d0f.zip
; Adapt more tests for Android
* test/infra/android/test-controller.el (ats-eval): Document new values of ats-eval. (ats-run-test): Report conditions where tests induce Emacs to exit. * test/lisp/erc/resources/erc-tests-common.el (erc-tests-common-kill-buffers): Bind kill-buffer-query-functions to nil.
Diffstat (limited to 'test')
-rw-r--r--test/infra/android/test-controller.el12
-rw-r--r--test/lisp/erc/resources/erc-tests-common.el5
2 files changed, 12 insertions, 5 deletions
diff --git a/test/infra/android/test-controller.el b/test/infra/android/test-controller.el
index 4a8b592648b..44eb6ddef64 100644
--- a/test/infra/android/test-controller.el
+++ b/test/infra/android/test-controller.el
@@ -1922,10 +1922,11 @@ this machine and an SSH daemon be executing on the host)."
1922 "Evaluate FORM in PROCESS, which form must be printable. 1922 "Evaluate FORM in PROCESS, which form must be printable.
1923Form should evaluate to a value that must be printable, or 1923Form should evaluate to a value that must be printable, or
1924signal an error. Value is (ok . VALUE) if no error was 1924signal an error. Value is (ok . VALUE) if no error was
1925signaled, or (error . VALUE) otherwise. If RAW, instruct 1925signaled, or (error . VALUE) otherwise. It may also be (exit
1926PROCESS not to attempt to decode the printed representation of 1926. BACKTRACE) if Emacs exited whilst FORM was executing. If RAW,
1927FORM as multibyte text; this does not influence the decoding 1927instruct PROCESS not to attempt to decode the printed
1928whatever value it returns. 1928representation of FORM as multibyte text; this does not
1929influence the decoding whatever value it returns.
1929 1930
1930Set AS-PRINTED to insist that the value be returned as a string; 1931Set AS-PRINTED to insist that the value be returned as a string;
1931this enables non-printable values to be returned in a meaningful 1932this enables non-printable values to be returned in a meaningful
@@ -2476,6 +2477,9 @@ Display the output of the tests executed in a buffer."
2476 (point-min) (point-max))))))) 2477 (point-min) (point-max)))))))
2477 (cond ((eq (car rc) 'error) 2478 (cond ((eq (car rc) 'error)
2478 (error "Error executing `%s-tests.el': %S" test (cdr rc))) 2479 (error "Error executing `%s-tests.el': %S" test (cdr rc)))
2480 ((eq (car rc) 'exit)
2481 (message "Backtrace:\n%s" (cdr rc))
2482 (error "Remote Emacs exited inside `%s-tests.el'" test))
2479 (t (progn 2483 (t (progn
2480 (goto-char (point-max)) 2484 (goto-char (point-max))
2481 (insert (cdr rc)) 2485 (insert (cdr rc))
diff --git a/test/lisp/erc/resources/erc-tests-common.el b/test/lisp/erc/resources/erc-tests-common.el
index eedea8c44de..91e248a944f 100644
--- a/test/lisp/erc/resources/erc-tests-common.el
+++ b/test/lisp/erc/resources/erc-tests-common.el
@@ -75,7 +75,10 @@ Assign the result to `erc-server-process' in the current buffer."
75;; `get-buffer-create' with INHIBIT-BUFFER-HOOKS. 75;; `get-buffer-create' with INHIBIT-BUFFER-HOOKS.
76(defun erc-tests-common-kill-buffers (&rest extra-buffers) 76(defun erc-tests-common-kill-buffers (&rest extra-buffers)
77 "Kill all ERC buffers and possibly EXTRA-BUFFERS." 77 "Kill all ERC buffers and possibly EXTRA-BUFFERS."
78 (let (erc-kill-channel-hook erc-kill-server-hook erc-kill-buffer-hook) 78 (let (erc-kill-channel-hook erc-kill-server-hook erc-kill-buffer-hook
79 ;; To facilitate automatic testing when a fake-server has already
80 ;; been created by an earlier ERT test.
81 (kill-buffer-query-functions nil))
79 (dolist (buf (erc-buffer-list)) 82 (dolist (buf (erc-buffer-list))
80 (kill-buffer buf)) 83 (kill-buffer buf))
81 (named-let doit ((buffers extra-buffers)) 84 (named-let doit ((buffers extra-buffers))