diff options
| author | Eli Zaretskii | 2023-08-12 13:42:14 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2023-08-12 13:42:14 -0400 |
| commit | b289f0769f0a43fdaabec41b92bacc51acbc4b9b (patch) | |
| tree | af63ebaee6937d7bf1be228948d81681527f056c /test | |
| parent | de6c1c4d5c92b92d5b280e157c2a5bc3228749f2 (diff) | |
| parent | 4767f5eaeedef57dfcc119399e5855f41c2e1be5 (diff) | |
| download | emacs-b289f0769f0a43fdaabec41b92bacc51acbc4b9b.tar.gz emacs-b289f0769f0a43fdaabec41b92bacc51acbc4b9b.zip | |
Merge from origin/emacs-29
4767f5eaeed Better fix for bug#65156
dd1d8414b33 Fix insert-file-contents with pipes and /dev/stdin
50649a6d1a2 ; * etc/PROBLEMS: Fix wording.
f0dda682ffb ; * etc/NEWS.28: Add deletion of levents.el.
f4acae842c0 Fix bug#65042
e1874c4e8bf * configure.ac (HAVE_TREE_SITTER): Set NEED_DYNLIB=yes (b...
ef8838c3a5f * etc/NEWS: Mention tramp-show-ad-hoc-proxies.
495bee253fc * test/lisp/net/tramp-tests.el (tramp-test42-utf8): Skip ...
de1effd73b4 ; Fix last change
7c7966862bc * test/lisp/net/tramp-tests.el (tramp-test10-write-region...
16205e8db65 ; Improve help-echo in package.el
a95e7006989 ; Filter packages available for upgrade via menu bar
adff72dd1d2 Fix reverting Rmail buffers
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index b1d39c413dc..fa68372143c 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -2711,7 +2711,20 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 2711 | :type 'file-already-exists) | 2711 | :type 'file-already-exists) |
| 2712 | (should-error | 2712 | (should-error |
| 2713 | (write-region "foo" nil tmp-name nil nil nil 'excl) | 2713 | (write-region "foo" nil tmp-name nil nil nil 'excl) |
| 2714 | :type 'file-already-exists)) | 2714 | :type 'file-already-exists) |
| 2715 | (delete-file tmp-name) | ||
| 2716 | |||
| 2717 | ;; Check `buffer-file-coding-system'. Bug#65022. | ||
| 2718 | (with-temp-buffer | ||
| 2719 | (setq buffer-file-name tmp-name) | ||
| 2720 | (insert "foo") | ||
| 2721 | (set-buffer-file-coding-system 'cp1251) | ||
| 2722 | (let ((bfcs buffer-file-coding-system)) | ||
| 2723 | (should (buffer-modified-p)) | ||
| 2724 | (should (null (save-buffer))) | ||
| 2725 | (should | ||
| 2726 | (eq (coding-system-get buffer-file-coding-system :mime-charset) | ||
| 2727 | (coding-system-get bfcs :mime-charset)))))) | ||
| 2715 | 2728 | ||
| 2716 | ;; Cleanup. | 2729 | ;; Cleanup. |
| 2717 | (ignore-errors (delete-file tmp-name)))))) | 2730 | (ignore-errors (delete-file tmp-name)))))) |
| @@ -7473,14 +7486,12 @@ This requires restrictions of file name syntax." | |||
| 7473 | (skip-unless (not (tramp--test-gdrive-p))) | 7486 | (skip-unless (not (tramp--test-gdrive-p))) |
| 7474 | (skip-unless (not (tramp--test-crypt-p))) | 7487 | (skip-unless (not (tramp--test-crypt-p))) |
| 7475 | (skip-unless (not (tramp--test-rclone-p))) | 7488 | (skip-unless (not (tramp--test-rclone-p))) |
| 7489 | (skip-unless (not (or (eq system-type 'darwin) (tramp--test-macos-p)))) | ||
| 7476 | 7490 | ||
| 7477 | (let* ((utf8 (if (and (eq system-type 'darwin) | 7491 | (let ((coding-system-for-read 'utf-8) |
| 7478 | (memq 'utf-8-hfs (coding-system-list))) | 7492 | (coding-system-for-write 'utf-8) |
| 7479 | 'utf-8-hfs 'utf-8)) | 7493 | (file-name-coding-system |
| 7480 | (coding-system-for-read utf8) | 7494 | (coding-system-change-eol-conversion 'utf-8 'unix))) |
| 7481 | (coding-system-for-write utf8) | ||
| 7482 | (file-name-coding-system | ||
| 7483 | (coding-system-change-eol-conversion utf8 'unix))) | ||
| 7484 | (apply | 7495 | (apply |
| 7485 | #'tramp--test-check-files | 7496 | #'tramp--test-check-files |
| 7486 | (append | 7497 | (append |