diff options
| author | Michael Albinus | 2022-07-10 12:42:55 +0200 |
|---|---|---|
| committer | Michael Albinus | 2022-07-10 12:42:55 +0200 |
| commit | 65a336ce48303855461cdbe228839d3a183928b1 (patch) | |
| tree | 849546c50162c01dcdb84234a355a7e5f93c8bf8 /test | |
| parent | 170dcde029778e15a342108e20af719f4435432b (diff) | |
| download | emacs-65a336ce48303855461cdbe228839d3a183928b1.tar.gz emacs-65a336ce48303855461cdbe228839d3a183928b1.zip | |
; * test/lisp/dnd-tests.el (dnd-tests-begin-drag-files): Instrument.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/dnd-tests.el | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/lisp/dnd-tests.el b/test/lisp/dnd-tests.el index 88f6e694577..7ce3677eaa0 100644 --- a/test/lisp/dnd-tests.el +++ b/test/lisp/dnd-tests.el | |||
| @@ -274,6 +274,7 @@ This function only tries to handle strings." | |||
| 274 | (skip-unless (and (dnd-tests-remote-accessible-p) | 274 | (skip-unless (and (dnd-tests-remote-accessible-p) |
| 275 | ;; TODO: make these tests work under X. | 275 | ;; TODO: make these tests work under X. |
| 276 | (not (eq window-system 'x)))) | 276 | (not (eq window-system 'x)))) |
| 277 | (let ((tramp-verbose (if (getenv "EMACS_HYDRA_CI") 10 3))) | ||
| 277 | (let ((normal-temp-file (expand-file-name (make-temp-name "dnd-test") | 278 | (let ((normal-temp-file (expand-file-name (make-temp-name "dnd-test") |
| 278 | temporary-file-directory)) | 279 | temporary-file-directory)) |
| 279 | (normal-temp-file-1 (expand-file-name (make-temp-name "dnd-test") | 280 | (normal-temp-file-1 (expand-file-name (make-temp-name "dnd-test") |
| @@ -383,9 +384,14 @@ This function only tries to handle strings." | |||
| 383 | ;; And when all remote files are inaccessible. | 384 | ;; And when all remote files are inaccessible. |
| 384 | (should-error (dnd-begin-drag-files (list nonexistent-remote-file | 385 | (should-error (dnd-begin-drag-files (list nonexistent-remote-file |
| 385 | nonexistent-remote-file-1)))) | 386 | nonexistent-remote-file-1)))) |
| 387 | (when (getenv "EMACS_HYDRA_CI") | ||
| 388 | (dolist (buf (tramp-list-tramp-buffers)) | ||
| 389 | (message ";; %s\n%s" buf (tramp-get-buffer-string buf)) | ||
| 390 | (kill-buffer buf))) | ||
| 386 | (delete-file normal-temp-file) | 391 | (delete-file normal-temp-file) |
| 387 | (delete-file normal-temp-file-1) | 392 | (delete-file normal-temp-file-1) |
| 388 | (delete-file remote-temp-file)))) | 393 | (delete-file remote-temp-file)))) |
| 394 | ) | ||
| 389 | 395 | ||
| 390 | (ert-deftest dnd-tests-get-local-file-uri () | 396 | (ert-deftest dnd-tests-get-local-file-uri () |
| 391 | (should (equal (dnd-get-local-file-uri "file://localhost/path/to/foo") | 397 | (should (equal (dnd-get-local-file-uri "file://localhost/path/to/foo") |