diff options
| author | Michael Albinus | 2019-10-27 09:36:56 +0100 |
|---|---|---|
| committer | Michael Albinus | 2019-10-27 09:36:56 +0100 |
| commit | 6e66d9a95c49f867da26ca897635f5e57561d0c7 (patch) | |
| tree | 979c5f7279fe0d76c92265bd6a4d3a17ecb8e473 | |
| parent | 63fd71cd092de8daded15e32c268215b62c488b9 (diff) | |
| download | emacs-6e66d9a95c49f867da26ca897635f5e57561d0c7.tar.gz emacs-6e66d9a95c49f867da26ca897635f5e57561d0c7.zip | |
Some Tramp trace improvements
* lisp/net/tramp.el (tramp-call-process): `result' can also be nil.
* test/lisp/net/tramp-tests.el (tramp--test-timeout-handler):
Improve trace format.
| -rw-r--r-- | lisp/net/tramp.el | 4 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 97fcf553010..0dfde734f1d 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -4660,8 +4660,8 @@ are written with verbosity of 6." | |||
| 4660 | (setq error (error-message-string err) | 4660 | (setq error (error-message-string err) |
| 4661 | result 1))) | 4661 | result 1))) |
| 4662 | (if (zerop (length error)) | 4662 | (if (zerop (length error)) |
| 4663 | (tramp-message vec 6 "%d\n%s" result output) | 4663 | (tramp-message vec 6 "%s\n%s" result output) |
| 4664 | (tramp-message vec 6 "%d\n%s\n%s" result output error)) | 4664 | (tramp-message vec 6 "%s\n%s\n%s" result output error)) |
| 4665 | result)) | 4665 | result)) |
| 4666 | 4666 | ||
| 4667 | (defun tramp-call-process-region | 4667 | (defun tramp-call-process-region |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 128d099ac24..c56c7dbbca2 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -4010,7 +4010,7 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'." | |||
| 4010 | (let ((proc (get-buffer-process (current-buffer)))) | 4010 | (let ((proc (get-buffer-process (current-buffer)))) |
| 4011 | (when (processp proc) | 4011 | (when (processp proc) |
| 4012 | (tramp--test-message | 4012 | (tramp--test-message |
| 4013 | "cmd: %s\n%s" (process-command proc) (buffer-string)))) | 4013 | "cmd: %s\nbuf:\n%s\n---" (process-command proc) (buffer-string)))) |
| 4014 | (ert-fail (format "`%s' timed out" (ert-test-name (ert-running-test))))) | 4014 | (ert-fail (format "`%s' timed out" (ert-test-name (ert-running-test))))) |
| 4015 | 4015 | ||
| 4016 | (ert-deftest tramp-test29-start-file-process () | 4016 | (ert-deftest tramp-test29-start-file-process () |