diff options
Diffstat (limited to 'test')
| -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 () |