aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/net/tramp-tests.el14
1 files changed, 5 insertions, 9 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 3a199469d6b..0f6f3b79800 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -195,9 +195,6 @@ is greater than 10.
195 "^error with add-name-to-file") 195 "^error with add-name-to-file")
196 debug-ignored-errors)) 196 debug-ignored-errors))
197 inhibit-message) 197 inhibit-message)
198 (when trace-buffer
199 (dolist (elt (all-completions "tramp-" obarray 'functionp))
200 (trace-function-background (intern elt))))
201 (unwind-protect 198 (unwind-protect
202 (let ((tramp--test-instrument-test-case-p t)) ,@body) 199 (let ((tramp--test-instrument-test-case-p t)) ,@body)
203 ;; Unwind forms. 200 ;; Unwind forms.
@@ -205,13 +202,12 @@ is greater than 10.
205 (untrace-all)) 202 (untrace-all))
206 (when (and (null tramp--test-instrument-test-case-p) (> tramp-verbose 3)) 203 (when (and (null tramp--test-instrument-test-case-p) (> tramp-verbose 3))
207 (dolist 204 (dolist
208 (buf (if trace-buffer 205 (buf (append
209 (cons (get-buffer trace-buffer) (tramp-list-tramp-buffers)) 206 (tramp-list-tramp-buffers)
210 (tramp-list-tramp-buffers))) 207 (and trace-buffer (list (get-buffer trace-buffer)))))
211 (with-current-buffer buf 208 (with-current-buffer buf
212 (message ";; %s\n%s" buf (buffer-string))))) 209 (message ";; %s\n%s" buf (buffer-string)))
213 (when trace-buffer 210 (kill-buffer buf))))))
214 (kill-buffer trace-buffer)))))
215 211
216(defsubst tramp--test-message (fmt-string &rest arguments) 212(defsubst tramp--test-message (fmt-string &rest arguments)
217 "Emit a message into ERT *Messages*." 213 "Emit a message into ERT *Messages*."