]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/net/tramp-tests.el (tramp--test-timeout-handler): Instrument.
authorMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Apr 2019 15:24:53 +0000 (17:24 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Mon, 29 Apr 2019 15:24:53 +0000 (17:24 +0200)
test/lisp/net/tramp-tests.el

index 4495a1fce4250cd631fbb467438f53688d033f63..cba697da18c1f744e8b338802cbe892dca425c1d 100644 (file)
@@ -3846,6 +3846,10 @@ This tests also `make-symbolic-link', `file-truename' and `add-name-to-file'."
 (defun tramp--test-timeout-handler (&rest _ignore)
   "Timeout handler, reporting a failed test."
   (interactive)
+  (let ((proc (get-buffer-process (current-buffer))))
+    (when (processp proc)
+      (tramp--test-message
+       "cmd: %s\n%s" (process-command proc) (buffer-string))))
   (ert-fail (format "`%s' timed out" (ert-test-name (ert-running-test)))))
 
 (ert-deftest tramp-test29-start-file-process ()