aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2018-07-24 06:40:58 -0700
committerGlenn Morris2018-07-24 06:40:58 -0700
commit64f94785c7ef76de160649054ec970f62af49472 (patch)
treeb35f018eed0daab3427cf240b32770a7b264f713 /test
parent8c6a50230eda7a0773dcf0e6530d064e28df357c (diff)
parentf64c2774e96c755a5fddcbc49db65dcc3fcb9323 (diff)
downloademacs-64f94785c7ef76de160649054ec970f62af49472.tar.gz
emacs-64f94785c7ef76de160649054ec970f62af49472.zip
Merge from origin/emacs-26
f64c277 (origin/emacs-26) Let bookmark-jump override window-point (Bu... 1208aaa Omit keymap from subword-mode docstring (Bug#32212) 2b70b54 Prevent line-mode term from showing user passwords 5de4441 Check for special filenames in eshell (Bug#30724) 1b4b965 Fix indent-sexp of #s(...) (Bug#31984) 59e8533 Add save-match-data to abbreviate-file-name (Bug#32201) 47f75b1 Fix last change in editfns.c 671dc5a Fix calls to buffer modification hooks from replace-buffer-co... cc4ceed ; etc/NEWS: Remove unnecessary reference to a bug number. e0f33ea Fix Bug#32226 7308fa0 Improve doc strings of several variables in keyboard.c
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/lisp-mode-tests.el12
-rw-r--r--test/lisp/shadowfile-tests.el8
2 files changed, 20 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/lisp-mode-tests.el b/test/lisp/emacs-lisp/lisp-mode-tests.el
index 8598d419788..0b052e9fc30 100644
--- a/test/lisp/emacs-lisp/lisp-mode-tests.el
+++ b/test/lisp/emacs-lisp/lisp-mode-tests.el
@@ -113,6 +113,18 @@ noindent\" 3
113 ;; we're indenting ends on the previous line. 113 ;; we're indenting ends on the previous line.
114 (should (equal (buffer-string) original))))) 114 (should (equal (buffer-string) original)))))
115 115
116(ert-deftest indent-sexp-go ()
117 "Make sure `indent-sexp' doesn't stop after #s."
118 ;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31984.
119 (with-temp-buffer
120 (emacs-lisp-mode)
121 (insert "#s(foo\nbar)\n")
122 (goto-char (point-min))
123 (indent-sexp)
124 (should (equal (buffer-string) "\
125#s(foo
126 bar)\n"))))
127
116(ert-deftest lisp-indent-region () 128(ert-deftest lisp-indent-region ()
117 "Test basics of `lisp-indent-region'." 129 "Test basics of `lisp-indent-region'."
118 (with-temp-buffer 130 (with-temp-buffer
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index 5ded94480ec..200fb4c58c6 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -556,6 +556,8 @@ guaranteed by the originator of a cluster definition."
556 556
557(ert-deftest shadow-test06-literal-groups () 557(ert-deftest shadow-test06-literal-groups ()
558 "Check literal group definitions." 558 "Check literal group definitions."
559 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
560
559 (let ((shadow-info-file shadow-test-info-file) 561 (let ((shadow-info-file shadow-test-info-file)
560 (shadow-todo-file shadow-test-todo-file) 562 (shadow-todo-file shadow-test-todo-file)
561 shadow-clusters shadow-literal-groups 563 shadow-clusters shadow-literal-groups
@@ -618,6 +620,8 @@ guaranteed by the originator of a cluster definition."
618 620
619(ert-deftest shadow-test07-regexp-groups () 621(ert-deftest shadow-test07-regexp-groups ()
620 "Check regexp group definitions." 622 "Check regexp group definitions."
623 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
624
621 (let ((shadow-info-file shadow-test-info-file) 625 (let ((shadow-info-file shadow-test-info-file)
622 (shadow-todo-file shadow-test-todo-file) 626 (shadow-todo-file shadow-test-todo-file)
623 shadow-clusters shadow-regexp-groups 627 shadow-clusters shadow-regexp-groups
@@ -682,6 +686,8 @@ guaranteed by the originator of a cluster definition."
682 686
683(ert-deftest shadow-test08-shadow-todo () 687(ert-deftest shadow-test08-shadow-todo ()
684 "Check that needed shadows are added to todo." 688 "Check that needed shadows are added to todo."
689 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
690
685 (let ((backup-inhibited t) 691 (let ((backup-inhibited t)
686 (shadow-info-file shadow-test-info-file) 692 (shadow-info-file shadow-test-info-file)
687 (shadow-todo-file shadow-test-todo-file) 693 (shadow-todo-file shadow-test-todo-file)
@@ -780,6 +786,8 @@ guaranteed by the originator of a cluster definition."
780 786
781(ert-deftest shadow-test09-shadow-copy-files () 787(ert-deftest shadow-test09-shadow-copy-files ()
782 "Check that needed shadow files are copied." 788 "Check that needed shadow files are copied."
789 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
790
783 (let ((backup-inhibited t) 791 (let ((backup-inhibited t)
784 (shadow-info-file shadow-test-info-file) 792 (shadow-info-file shadow-test-info-file)
785 (shadow-todo-file shadow-test-todo-file) 793 (shadow-todo-file shadow-test-todo-file)