diff options
| author | Michael Albinus | 2019-04-22 09:58:37 +0200 |
|---|---|---|
| committer | Michael Albinus | 2019-04-22 09:58:37 +0200 |
| commit | 02894982115f6f32ffca2cb1fc4ece122d202853 (patch) | |
| tree | d46dac4a3f7b625c358bd9d73382c513a79cf38d | |
| parent | b20d8a932240d5332b4f44b95b2bc1d6fc74c7b0 (diff) | |
| download | emacs-02894982115f6f32ffca2cb1fc4ece122d202853.tar.gz emacs-02894982115f6f32ffca2cb1fc4ece122d202853.zip | |
Some changes in tramp-tests
* test/lisp/net/tramp-tests.el (tramp-test32-shell-command):
Check for backward compatibility.
(tramp-test33-environment-variables): Apply a better check for
unset variable.
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index e2f806e8272..4495a1fce42 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -4189,7 +4189,9 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4189 | (ignore-errors (delete-file tmp-name))) | 4189 | (ignore-errors (delete-file tmp-name))) |
| 4190 | 4190 | ||
| 4191 | ;; Test `shell-command-width' of `async-shell-command'. | 4191 | ;; Test `shell-command-width' of `async-shell-command'. |
| 4192 | (when (and (zerop (call-process "tput" nil nil nil "cols")) | 4192 | ;; Since Emacs 27.1. |
| 4193 | (when (and (boundp 'shell-command-width) | ||
| 4194 | (zerop (call-process "tput" nil nil nil "cols")) | ||
| 4193 | (zerop (process-file "tput" nil nil nil "cols"))) | 4195 | (zerop (process-file "tput" nil nil nil "cols"))) |
| 4194 | (let (shell-command-width) | 4196 | (let (shell-command-width) |
| 4195 | (should | 4197 | (should |
| @@ -4280,7 +4282,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4280 | (should-not | 4282 | (should-not |
| 4281 | (string-match | 4283 | (string-match |
| 4282 | (regexp-quote envvar) | 4284 | (regexp-quote envvar) |
| 4283 | (funcall this-shell-command-to-string "set"))))))))) | 4285 | (funcall this-shell-command-to-string "env"))))))))) |
| 4284 | 4286 | ||
| 4285 | ;; This test is inspired by Bug#27009. | 4287 | ;; This test is inspired by Bug#27009. |
| 4286 | (ert-deftest tramp-test33-environment-variables-and-port-numbers () | 4288 | (ert-deftest tramp-test33-environment-variables-and-port-numbers () |