aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMichael R. Mauger2017-07-05 23:37:13 -0400
committerMichael R. Mauger2017-07-05 23:37:13 -0400
commit7f62a4a7440aee6aacf04036feb3384a6515e48f (patch)
treeeedee2b54ffce3756f9ca3ef5a1e6e48d83472b6 /test
parent776635c01abd4aa759e7aa9584b513146978568c (diff)
parent7a0170de20fe1225d3eeac099d1e61a0c0410bf3 (diff)
downloademacs-7f62a4a7440aee6aacf04036feb3384a6515e48f.tar.gz
emacs-7f62a4a7440aee6aacf04036feb3384a6515e48f.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'test')
-rw-r--r--test/lisp/electric-tests.el3
-rw-r--r--test/lisp/net/tramp-tests.el45
2 files changed, 27 insertions, 21 deletions
diff --git a/test/lisp/electric-tests.el b/test/lisp/electric-tests.el
index 9dd27661d46..c4ccec7a0d8 100644
--- a/test/lisp/electric-tests.el
+++ b/test/lisp/electric-tests.el
@@ -706,8 +706,7 @@ baz\"\""
706 :test-in-comments nil :test-in-strings nil) 706 :test-in-comments nil :test-in-strings nil)
707 707
708(define-electric-pair-test electric-quote-markdown-in-code 708(define-electric-pair-test electric-quote-markdown-in-code
709 #("`a`" 1 2 (face font-lock-constant-face)) "-'" 709 "`a`" "-'" :expected-string "`'a`" :expected-point 3
710 :expected-string "`'a`" :expected-point 3
711 :modes '(text-mode) 710 :modes '(text-mode)
712 :fixture-fn (lambda () 711 :fixture-fn (lambda ()
713 (electric-quote-local-mode) 712 (electric-quote-local-mode)
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el
index 31cf7f9ba1c..6c02daa6547 100644
--- a/test/lisp/net/tramp-tests.el
+++ b/test/lisp/net/tramp-tests.el
@@ -3739,6 +3739,8 @@ process sentinels. They shall not disturb each other."
3739 3739
3740 ;; Open asynchronous processes. Set process filter and sentinel. 3740 ;; Open asynchronous processes. Set process filter and sentinel.
3741 (dolist (buf buffers) 3741 (dolist (buf buffers)
3742 ;; Activate timer.
3743 (sit-for 0.01 'nodisp)
3742 (let ((proc 3744 (let ((proc
3743 (start-file-process-shell-command 3745 (start-file-process-shell-command
3744 (buffer-name buf) buf 3746 (buffer-name buf) buf
@@ -3768,6 +3770,8 @@ process sentinels. They shall not disturb each other."
3768 ;; with regular operation. 3770 ;; with regular operation.
3769 (let ((buffers (copy-sequence buffers))) 3771 (let ((buffers (copy-sequence buffers)))
3770 (while buffers 3772 (while buffers
3773 ;; Activate timer.
3774 (sit-for 0.01 'nodisp)
3771 (let* ((buf (nth (random (length buffers)) buffers)) 3775 (let* ((buf (nth (random (length buffers)) buffers))
3772 (proc (get-buffer-process buf)) 3776 (proc (get-buffer-process buf))
3773 (file (process-get proc 'foo)) 3777 (file (process-get proc 'foo))
@@ -3808,31 +3812,34 @@ process sentinels. They shall not disturb each other."
3808 "Check that Tramp does not fail due to recursive load." 3812 "Check that Tramp does not fail due to recursive load."
3809 (skip-unless (tramp--test-enabled)) 3813 (skip-unless (tramp--test-enabled))
3810 3814
3811 (dolist (code 3815 (let ((default-directory (expand-file-name temporary-file-directory)))
3812 (list 3816 (dolist (code
3813 (format "(expand-file-name %S)" tramp-test-temporary-file-directory) 3817 (list
3814 (format 3818 (format
3815 "(let ((default-directory %S)) (expand-file-name %S))" 3819 "(expand-file-name %S)" tramp-test-temporary-file-directory)
3816 tramp-test-temporary-file-directory 3820 (format
3817 temporary-file-directory))) 3821 "(let ((default-directory %S)) (expand-file-name %S))"
3818 (should-not 3822 tramp-test-temporary-file-directory
3819 (string-match 3823 temporary-file-directory)))
3820 "Recursive load" 3824 (should-not
3821 (shell-command-to-string 3825 (string-match
3822 (format 3826 "Recursive load"
3823 "%s -batch -Q -L %s --eval %s" 3827 (shell-command-to-string
3824 (expand-file-name invocation-name invocation-directory) 3828 (format
3825 (mapconcat 'shell-quote-argument load-path " -L ") 3829 "%s -batch -Q -L %s --eval %s"
3826 (shell-quote-argument code))))))) 3830 (expand-file-name invocation-name invocation-directory)
3831 (mapconcat 'shell-quote-argument load-path " -L ")
3832 (shell-quote-argument code))))))))
3827 3833
3828(ert-deftest tramp-test38-remote-load-path () 3834(ert-deftest tramp-test38-remote-load-path ()
3829 "Check that Tramp autoloads its packages with remote `load-path'." 3835 "Check that Tramp autoloads its packages with remote `load-path'."
3830 ;; `tramp-cleanup-all-connections' is autoloaded from tramp-cmds.el. 3836 ;; `tramp-cleanup-all-connections' is autoloaded from tramp-cmds.el.
3831 ;; It shall still work, when a remote file name is in the 3837 ;; It shall still work, when a remote file name is in the
3832 ;; `load-path'. 3838 ;; `load-path'.
3833 (let ((code 3839 (let ((default-directory (expand-file-name temporary-file-directory))
3834 "(let ((force-load-messages t)\ 3840 (code
3835 (load-path (cons \"/foo:bar:\" load-path)))\ 3841 "(let ((force-load-messages t) \
3842 (load-path (cons \"/foo:bar:\" load-path))) \
3836 (tramp-cleanup-all-connections))")) 3843 (tramp-cleanup-all-connections))"))
3837 (should 3844 (should
3838 (string-match 3845 (string-match