diff options
| author | Michael Albinus | 2019-04-05 13:27:06 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-04-05 13:27:06 +0200 |
| commit | f2d22273599f96a731e23b2f6d7571af8bb7bb3f (patch) | |
| tree | ec2e669a76e9fdb486c064d1c6d1fe38273490b4 | |
| parent | 051533c6fa63ee10e58e83823ba962a005ba68f9 (diff) | |
| download | emacs-f2d22273599f96a731e23b2f6d7571af8bb7bb3f.tar.gz emacs-f2d22273599f96a731e23b2f6d7571af8bb7bb3f.zip | |
Adapt tramp-tests.el
* test/lisp/net/tramp-tests.el (tramp-test30-make-process):
Instrument test. Adapt check string.
(tramp-test34-explicit-shell-file-name)
(tramp-test43-asynchronous-requests): Skip tests for tramp-adb
with older Emacsen.
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 96e4438ec11..5a9541db8fb 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -3926,6 +3926,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 3926 | ;; `make-process' supports file name handlers since Emacs 27. | 3926 | ;; `make-process' supports file name handlers since Emacs 27. |
| 3927 | (skip-unless (tramp--test-emacs27-p)) | 3927 | (skip-unless (tramp--test-emacs27-p)) |
| 3928 | 3928 | ||
| 3929 | (tramp--test-instrument-test-case 0 | ||
| 3929 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) | 3930 | (dolist (quoted (if (tramp--test-expensive-test) '(nil t) '(nil))) |
| 3930 | (let ((default-directory tramp-test-temporary-file-directory) | 3931 | (let ((default-directory tramp-test-temporary-file-directory) |
| 3931 | (tmp-name (tramp--test-make-temp-name nil quoted)) | 3932 | (tmp-name (tramp--test-make-temp-name nil quoted)) |
| @@ -4045,11 +4046,11 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4045 | (while (= (point-min) (point-max)) | 4046 | (while (= (point-min) (point-max)) |
| 4046 | (while (accept-process-output proc 0 nil t)))) | 4047 | (while (accept-process-output proc 0 nil t)))) |
| 4047 | (should | 4048 | (should |
| 4048 | (string-equal (buffer-string) "cat: /: Is a directory\n")))) | 4049 | (string-match "^cat:.* Is a directory" (buffer-string))))) |
| 4049 | 4050 | ||
| 4050 | ;; Cleanup. | 4051 | ;; Cleanup. |
| 4051 | (ignore-errors (delete-process proc)) | 4052 | (ignore-errors (delete-process proc)) |
| 4052 | (ignore-errors (kill-buffer stderr)))))))) | 4053 | (ignore-errors (kill-buffer stderr))))))))) |
| 4053 | 4054 | ||
| 4054 | (ert-deftest tramp-test31-interrupt-process () | 4055 | (ert-deftest tramp-test31-interrupt-process () |
| 4055 | "Check `interrupt-process'." | 4056 | "Check `interrupt-process'." |
| @@ -4365,7 +4366,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4365 | "Check that connection-local `explicit-shell-file-name' is set." | 4366 | "Check that connection-local `explicit-shell-file-name' is set." |
| 4366 | :tags '(:expensive-test) | 4367 | :tags '(:expensive-test) |
| 4367 | (skip-unless (tramp--test-enabled)) | 4368 | (skip-unless (tramp--test-enabled)) |
| 4368 | (skip-unless (or (tramp--test-adb-p) (tramp--test-sh-p))) | 4369 | ;; Prior Emacs 27, `shell-file-name' was hard coded as "/bin/sh" for |
| 4370 | ;; remote processes in Emacs. That doesn't work for tramp-adb.el. | ||
| 4371 | (skip-unless (or (and (tramp--test-adb-p) (tramp--test-emacs27-p)) | ||
| 4372 | (tramp--test-sh-p))) | ||
| 4369 | ;; Since Emacs 26.1. | 4373 | ;; Since Emacs 26.1. |
| 4370 | (skip-unless (and (fboundp 'connection-local-set-profile-variables) | 4374 | (skip-unless (and (fboundp 'connection-local-set-profile-variables) |
| 4371 | (fboundp 'connection-local-set-profiles))) | 4375 | (fboundp 'connection-local-set-profiles))) |
| @@ -5363,7 +5367,10 @@ process sentinels. They shall not disturb each other." | |||
| 5363 | ;; we mark it as unstable. | 5367 | ;; we mark it as unstable. |
| 5364 | :tags '(:expensive-test :unstable) | 5368 | :tags '(:expensive-test :unstable) |
| 5365 | (skip-unless (tramp--test-enabled)) | 5369 | (skip-unless (tramp--test-enabled)) |
| 5366 | (skip-unless (or (tramp--test-adb-p) (tramp--test-sh-p))) | 5370 | ;; Prior Emacs 27, `shell-file-name' was hard coded as "/bin/sh" for |
| 5371 | ;; remote processes in Emacs. That doesn't work for tramp-adb.el. | ||
| 5372 | (skip-unless (or (and (tramp--test-adb-p) (tramp--test-emacs27-p)) | ||
| 5373 | (tramp--test-sh-p))) | ||
| 5367 | 5374 | ||
| 5368 | (with-timeout | 5375 | (with-timeout |
| 5369 | (tramp--test-asynchronous-requests-timeout (tramp--test-timeout-handler)) | 5376 | (tramp--test-asynchronous-requests-timeout (tramp--test-timeout-handler)) |
| @@ -5731,6 +5738,7 @@ Since it unloads Tramp, it shall be the last test to run." | |||
| 5731 | ;; `tramp-test30-make-process' on MS Windows (`process-send-eof'?). | 5738 | ;; `tramp-test30-make-process' on MS Windows (`process-send-eof'?). |
| 5732 | ;; * Fix Bug#16928 in `tramp-test43-asynchronous-requests'. Looks | 5739 | ;; * Fix Bug#16928 in `tramp-test43-asynchronous-requests'. Looks |
| 5733 | ;; like it is resolved now. Remove `:unstable' tag? | 5740 | ;; like it is resolved now. Remove `:unstable' tag? |
| 5741 | ;; * Implement `tramp-test31-interrupt-process' for `adb'. | ||
| 5734 | 5742 | ||
| 5735 | (provide 'tramp-tests) | 5743 | (provide 'tramp-tests) |
| 5736 | ;;; tramp-tests.el ends here | 5744 | ;;; tramp-tests.el ends here |