diff options
| author | Po Lu | 2021-12-07 09:32:13 +0800 |
|---|---|---|
| committer | Po Lu | 2021-12-07 09:32:13 +0800 |
| commit | d9b3f665bc57bc78716f4c9d5efebf283f7e1964 (patch) | |
| tree | 4795b7d972c36f84ae57632922a05de2e01fd856 /test | |
| parent | 0b6a632f99214e2d1e9e1d72b8f8b3a7f054d552 (diff) | |
| parent | e17aea73a5b2ae5f7cbf9057d7dad286be81ffc0 (diff) | |
| download | emacs-d9b3f665bc57bc78716f4c9d5efebf283f7e1964.tar.gz emacs-d9b3f665bc57bc78716f4c9d5efebf283f7e1964.zip | |
Merge remote-tracking branch 'origin/master' into feature/pgtk
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/bytecomp-tests.el | 5 | ||||
| -rw-r--r-- | test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el | 1 | ||||
| -rw-r--r-- | test/lisp/mail/mail-utils-tests.el | 3 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 7 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el index b82afd353cf..7e51f820b70 100644 --- a/test/lisp/emacs-lisp/bytecomp-tests.el +++ b/test/lisp/emacs-lisp/bytecomp-tests.el | |||
| @@ -851,8 +851,7 @@ byte-compiled. Run with dynamic binding." | |||
| 851 | (byte-compile-file ,(ert-resource-file file)) | 851 | (byte-compile-file ,(ert-resource-file file)) |
| 852 | (ert-info ((buffer-string) :prefix "buffer: ") | 852 | (ert-info ((buffer-string) :prefix "buffer: ") |
| 853 | (,(if reverse 'should-not 'should) | 853 | (,(if reverse 'should-not 'should) |
| 854 | (re-search-forward ,(string-replace " " "[ \n]+" re-warning) | 854 | (re-search-forward ,re-warning nil t)))))) |
| 855 | nil t)))))) | ||
| 856 | 855 | ||
| 857 | (bytecomp--define-warning-file-test "error-lexical-var-with-add-hook.el" | 856 | (bytecomp--define-warning-file-test "error-lexical-var-with-add-hook.el" |
| 858 | "add-hook.*lexical var") | 857 | "add-hook.*lexical var") |
| @@ -980,7 +979,7 @@ byte-compiled. Run with dynamic binding." | |||
| 980 | 979 | ||
| 981 | (bytecomp--define-warning-file-test | 980 | (bytecomp--define-warning-file-test |
| 982 | "warn-wide-docstring-defun.el" | 981 | "warn-wide-docstring-defun.el" |
| 983 | "wider than .* characters") | 982 | "Warning: docstring wider than .* characters") |
| 984 | 983 | ||
| 985 | (bytecomp--define-warning-file-test | 984 | (bytecomp--define-warning-file-test |
| 986 | "warn-wide-docstring-defvar.el" | 985 | "warn-wide-docstring-defvar.el" |
diff --git a/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el b/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el index ee52d831d69..e881e46a2d1 100644 --- a/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el +++ b/test/lisp/emacs-lisp/eieio-tests/eieio-test-methodinvoke.el | |||
| @@ -325,6 +325,7 @@ | |||
| 325 | ()) | 325 | ()) |
| 326 | 326 | ||
| 327 | (with-suppressed-warnings ((obsolete defmethod) | 327 | (with-suppressed-warnings ((obsolete defmethod) |
| 328 | (obsolete defgeneric) | ||
| 328 | (obsolete next-method-p) | 329 | (obsolete next-method-p) |
| 329 | (obsolete call-next-method)) | 330 | (obsolete call-next-method)) |
| 330 | (defmethod initialize-instance :after ((_this eitest-Jb) &rest _slots) | 331 | (defmethod initialize-instance :after ((_this eitest-Jb) &rest _slots) |
diff --git a/test/lisp/mail/mail-utils-tests.el b/test/lisp/mail/mail-utils-tests.el index 5b54f2440c7..f75de5c620c 100644 --- a/test/lisp/mail/mail-utils-tests.el +++ b/test/lisp/mail/mail-utils-tests.el | |||
| @@ -85,7 +85,8 @@ | |||
| 85 | "foo@example.org\\|bar@example.org\\|baz@example.org"))) | 85 | "foo@example.org\\|bar@example.org\\|baz@example.org"))) |
| 86 | 86 | ||
| 87 | (ert-deftest mail-utils-tests-mail-rfc822-time-zone () | 87 | (ert-deftest mail-utils-tests-mail-rfc822-time-zone () |
| 88 | (should (stringp (mail-rfc822-time-zone (current-time))))) | 88 | (with-suppressed-warnings ((obsolete mail-rfc822-time-zone)) |
| 89 | (should (stringp (mail-rfc822-time-zone (current-time)))))) | ||
| 89 | 90 | ||
| 90 | (ert-deftest mail-utils-test-mail-rfc822-date/contains-year () | 91 | (ert-deftest mail-utils-test-mail-rfc822-date/contains-year () |
| 91 | (should (string-match (rx " 20" digit digit " ") | 92 | (should (string-match (rx " 20" digit digit " ") |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index c047f666dae..a572ff83d3f 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -219,8 +219,7 @@ is greater than 10. | |||
| 219 | (when (and (null tramp--test-instrument-test-case-p) (> tramp-verbose 3)) | 219 | (when (and (null tramp--test-instrument-test-case-p) (> tramp-verbose 3)) |
| 220 | (untrace-all) | 220 | (untrace-all) |
| 221 | (dolist (buf (tramp-list-tramp-buffers)) | 221 | (dolist (buf (tramp-list-tramp-buffers)) |
| 222 | (with-current-buffer buf | 222 | (message ";; %s\n%s" buf (tramp-get-buffer-string buf)) |
| 223 | (message ";; %s\n%s" buf (buffer-string))) | ||
| 224 | (kill-buffer buf)))))) | 223 | (kill-buffer buf)))))) |
| 225 | 224 | ||
| 226 | (defsubst tramp--test-message (fmt-string &rest arguments) | 225 | (defsubst tramp--test-message (fmt-string &rest arguments) |
| @@ -5054,8 +5053,8 @@ INPUT, if non-nil, is a string sent to the process." | |||
| 5054 | "echo foo >&2; echo bar" (current-buffer) stderr) | 5053 | "echo foo >&2; echo bar" (current-buffer) stderr) |
| 5055 | (should (string-equal "bar\n" (buffer-string))) | 5054 | (should (string-equal "bar\n" (buffer-string))) |
| 5056 | ;; Check stderr. | 5055 | ;; Check stderr. |
| 5057 | (with-current-buffer stderr | 5056 | (should |
| 5058 | (should (string-equal "foo\n" (buffer-string))))) | 5057 | (string-equal "foo\n" (tramp-get-buffer-string stderr)))) |
| 5059 | 5058 | ||
| 5060 | ;; Cleanup. | 5059 | ;; Cleanup. |
| 5061 | (ignore-errors (kill-buffer stderr)))))) | 5060 | (ignore-errors (kill-buffer stderr)))))) |