diff options
| author | Michael Albinus | 2016-05-10 08:05:49 +0200 |
|---|---|---|
| committer | Michael Albinus | 2016-05-10 08:05:49 +0200 |
| commit | cfa59d6a26b55d81d5df3d5a0ba618c8c5808aa0 (patch) | |
| tree | 93880872ab44ea0b16e0c3c1b117576e0388c3b4 /test | |
| parent | c20cc0986cdade6577d6ce169330db19e2169794 (diff) | |
| download | emacs-cfa59d6a26b55d81d5df3d5a0ba618c8c5808aa0.tar.gz emacs-cfa59d6a26b55d81d5df3d5a0ba618c8c5808aa0.zip | |
; Instrument tramp-tests.el
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index 6bbe9691286..0f40468ec98 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -639,9 +639,13 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 639 | (should-not | 639 | (should-not |
| 640 | (unhandled-file-name-directory "/method:host:/path/to/file")) | 640 | (unhandled-file-name-directory "/method:host:/path/to/file")) |
| 641 | 641 | ||
| 642 | (unwind-protect | ||
| 642 | ;; Bug#10085. | 643 | ;; Bug#10085. |
| 643 | (dolist (n-e '(nil t)) | 644 | (dolist (n-e '(nil t)) |
| 644 | (let ((non-essential n-e)) | 645 | (let ((non-essential n-e)) |
| 646 | (when (getenv "NIX_STORE") | ||
| 647 | (dolist (elt (all-completions "tramp-" obarray 'functionp)) | ||
| 648 | (trace-function-background (intern elt)))) | ||
| 645 | (dolist (file | 649 | (dolist (file |
| 646 | `(,(file-remote-p tramp-test-temporary-file-directory 'method) | 650 | `(,(file-remote-p tramp-test-temporary-file-directory 'method) |
| 647 | ,(file-remote-p tramp-test-temporary-file-directory 'host))) | 651 | ,(file-remote-p tramp-test-temporary-file-directory 'host))) |
| @@ -656,7 +660,10 @@ This checks also `file-name-as-directory', `file-name-directory', | |||
| 656 | (file-name-as-directory file) | 660 | (file-name-as-directory file) |
| 657 | (if (tramp-completion-mode-p) file (concat file "./")))) | 661 | (if (tramp-completion-mode-p) file (concat file "./")))) |
| 658 | (should (string-equal (file-name-directory file) file)) | 662 | (should (string-equal (file-name-directory file) file)) |
| 659 | (should (string-equal (file-name-nondirectory file) ""))))))) | 663 | (should (string-equal (file-name-nondirectory file) "")))))) |
| 664 | (when (getenv "NIX_STORE") | ||
| 665 | (untrace-all) | ||
| 666 | (message "%s" (with-current-buffer trace-buffer (buffer-string)))))) | ||
| 660 | 667 | ||
| 661 | (ert-deftest tramp-test07-file-exists-p () | 668 | (ert-deftest tramp-test07-file-exists-p () |
| 662 | "Check `file-exist-p', `write-region' and `delete-file'." | 669 | "Check `file-exist-p', `write-region' and `delete-file'." |