diff options
| author | Michael Albinus | 2020-02-13 16:34:07 +0100 |
|---|---|---|
| committer | Michael Albinus | 2020-02-13 16:34:07 +0100 |
| commit | 7fda39419296cda9ae1c01c8ca69a30775db68b0 (patch) | |
| tree | 1026d657385abb6ab76e634c8d21a3484e01cc12 /test/lisp | |
| parent | de1d150a6ef58760ab0a58dbee84596623d85d14 (diff) | |
| download | emacs-7fda39419296cda9ae1c01c8ca69a30775db68b0.tar.gz emacs-7fda39419296cda9ae1c01c8ca69a30775db68b0.zip | |
Fix `tramp-interrupt-process'
* lisp/net/tramp.el (tramp-interrupt-process): Improve command.
* test/lisp/net/tramp-tests.el (tramp-test06-directory-file-name)
(tramp-test26-file-name-completion): Simplify.
(tramp-test31-interrupt-process): Remove :unstable tag.
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index f70f324868d..3e192899d45 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -2217,11 +2217,10 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 2217 | 2217 | ||
| 2218 | ;; Bug#10085. | 2218 | ;; Bug#10085. |
| 2219 | (when (tramp--test-enabled) ;; Packages like tramp-gvfs.el might be disabled. | 2219 | (when (tramp--test-enabled) ;; Packages like tramp-gvfs.el might be disabled. |
| 2220 | (dolist (n-e '(nil t)) | 2220 | (dolist (non-essential '(nil t)) |
| 2221 | ;; We must clear `tramp-default-method'. On hydra, it is "ftp", | 2221 | ;; We must clear `tramp-default-method'. On hydra, it is "ftp", |
| 2222 | ;; which ruins the tests. | 2222 | ;; which ruins the tests. |
| 2223 | (let ((non-essential n-e) | 2223 | (let ((tramp-default-method |
| 2224 | (tramp-default-method | ||
| 2225 | (file-remote-p tramp-test-temporary-file-directory 'method)) | 2224 | (file-remote-p tramp-test-temporary-file-directory 'method)) |
| 2226 | (host (file-remote-p tramp-test-temporary-file-directory 'host))) | 2225 | (host (file-remote-p tramp-test-temporary-file-directory 'host))) |
| 2227 | (dolist | 2226 | (dolist |
| @@ -4035,10 +4034,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4035 | ;; Cleanup. | 4034 | ;; Cleanup. |
| 4036 | (tramp-change-syntax orig-syntax)))) | 4035 | (tramp-change-syntax orig-syntax)))) |
| 4037 | 4036 | ||
| 4038 | (dolist (n-e '(nil t)) | 4037 | (dolist (non-essential '(nil t)) |
| 4039 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) | 4038 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) |
| 4040 | (let ((non-essential n-e) | 4039 | (let ((tmp-name (tramp--test-make-temp-name nil quoted))) |
| 4041 | (tmp-name (tramp--test-make-temp-name nil quoted))) | ||
| 4042 | 4040 | ||
| 4043 | (unwind-protect | 4041 | (unwind-protect |
| 4044 | (progn | 4042 | (progn |
| @@ -4419,9 +4417,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4419 | 4417 | ||
| 4420 | (ert-deftest tramp-test31-interrupt-process () | 4418 | (ert-deftest tramp-test31-interrupt-process () |
| 4421 | "Check `interrupt-process'." | 4419 | "Check `interrupt-process'." |
| 4422 | ;; The test fails from time to time, w/o a reproducible pattern. So | 4420 | :tags '(:expensive-test) |
| 4423 | ;; we mark it as unstable. | ||
| 4424 | :tags '(:expensive-test :unstable) | ||
| 4425 | (skip-unless (tramp--test-enabled)) | 4421 | (skip-unless (tramp--test-enabled)) |
| 4426 | (skip-unless (tramp--test-sh-p)) | 4422 | (skip-unless (tramp--test-sh-p)) |
| 4427 | ;; Since Emacs 26.1. | 4423 | ;; Since Emacs 26.1. |
| @@ -4435,7 +4431,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4435 | kill-buffer-query-functions proc) | 4431 | kill-buffer-query-functions proc) |
| 4436 | (unwind-protect | 4432 | (unwind-protect |
| 4437 | (with-temp-buffer | 4433 | (with-temp-buffer |
| 4438 | (setq proc (start-file-process "test" (current-buffer) "sleep" "10")) | 4434 | (setq proc (start-file-process-shell-command |
| 4435 | "test" (current-buffer) | ||
| 4436 | "trap 'echo boom; exit 1' 2; sleep 100")) | ||
| 4439 | (should (processp proc)) | 4437 | (should (processp proc)) |
| 4440 | (should (process-live-p proc)) | 4438 | (should (process-live-p proc)) |
| 4441 | (should (equal (process-status proc) 'run)) | 4439 | (should (equal (process-status proc) 'run)) |