aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2018-07-28 07:50:36 -0700
committerGlenn Morris2018-07-28 07:50:36 -0700
commit4713f5d7423f0a8f2a2dd147cec70982145562d6 (patch)
treeb052f21a286e65e2030119246b9ddf8fa8a716cf /test
parent1bcf5d02da96784a04034b4c0aba8fdfa1413c4e (diff)
parentbd52f37cae3fbc25e576f9b0a1ba42596790965f (diff)
downloademacs-4713f5d7423f0a8f2a2dd147cec70982145562d6.tar.gz
emacs-4713f5d7423f0a8f2a2dd147cec70982145562d6.zip
Merge from origin/emacs-26
bd52f37 (origin/emacs-26) ; Fix last change: only MinGW runtime 5.0.2... 024d20f Fix compilation with mingw.org's MinGW 5.x headers 38b6748 Update the list of special forms in the ELisp manual 8579105 Don't fail to indent-sexp before a full sexp (Bug#31984) d24c5f2 Fix calls to modifications hooks in replace-buffer-contents 71a9151 * src/character.c (char_width): Support glyphs with faces. (... 0feb673 Display raw bytes as belonging to 'eight-bit' charset 2e2f00f ; * doc/emacs/mule.texi (International Chars): Fix last change. 00561b5 Fix inaccurate text in the user manual 5cfb7a3 Copyedits in tramp.texi, improved example with bash's readline 6f8f358 Minor Tramp doc update 2585fcb File Shadowing is not available on MS Windows 39da592 ; Minor markup change in indent.texi 2f00ffe ; bookmark-jump: Add comment about last change.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/lisp-mode-tests.el11
-rw-r--r--test/lisp/shadowfile-tests.el24
2 files changed, 34 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/lisp-mode-tests.el b/test/lisp/emacs-lisp/lisp-mode-tests.el
index 0b052e9fc30..30f606d3816 100644
--- a/test/lisp/emacs-lisp/lisp-mode-tests.el
+++ b/test/lisp/emacs-lisp/lisp-mode-tests.el
@@ -125,6 +125,17 @@ noindent\" 3
125#s(foo 125#s(foo
126 bar)\n")))) 126 bar)\n"))))
127 127
128(ert-deftest indent-sexp-cant-go ()
129 "`indent-sexp' shouldn't error before a sexp."
130 ;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=31984#32.
131 (with-temp-buffer
132 (emacs-lisp-mode)
133 (insert "(())")
134 (goto-char (1+ (point-min)))
135 ;; Paredit calls `indent-sexp' from this position.
136 (indent-sexp)
137 (should (equal (buffer-string) "(())"))))
138
128(ert-deftest lisp-indent-region () 139(ert-deftest lisp-indent-region ()
129 "Test basics of `lisp-indent-region'." 140 "Test basics of `lisp-indent-region'."
130 (with-temp-buffer 141 (with-temp-buffer
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index 2affe778deb..085ab476ffe 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -15,10 +15,22 @@
15;; General Public License for more details. 15;; General Public License for more details.
16;; 16;;
17;; You should have received a copy of the GNU General Public License 17;; You should have received a copy of the GNU General Public License
18;; along with this program. If not, see `http://www.gnu.org/licenses/'. 18;; along with this program. If not, see `https://www.gnu.org/licenses/'.
19 19
20;;; Commentary: 20;;; Commentary:
21 21
22;; Some of the tests require access to a remote host files. Since
23;; this could be problematic, a mock-up connection method "mock" is
24;; used. Emulating a remote connection, it simply calls "sh -i".
25;; Tramp's file name handlers still run, so this test is sufficient
26;; except for connection establishing.
27
28;; If you want to test a real Tramp connection, set
29;; $REMOTE_TEMPORARY_FILE_DIRECTORY to a suitable value in order to
30;; overwrite the default value. If you want to skip tests accessing a
31;; remote host, set this environment variable to "/dev/null" or
32;; whatever is appropriate on your system.
33
22;; A whole test run can be performed calling the command `shadowfile-test-all'. 34;; A whole test run can be performed calling the command `shadowfile-test-all'.
23 35
24;;; Code: 36;;; Code:
@@ -64,6 +76,7 @@
64Per definition, all files are identical on the different hosts of 76Per definition, all files are identical on the different hosts of
65a cluster (or site). This is not tested here; it must be 77a cluster (or site). This is not tested here; it must be
66guaranteed by the originator of a cluster definition." 78guaranteed by the originator of a cluster definition."
79 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
67 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 80 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
68 81
69 (let ((text-quoting-style 'grave) ;; We inspect the *Messages* buffer! 82 (let ((text-quoting-style 'grave) ;; We inspect the *Messages* buffer!
@@ -187,6 +200,7 @@ guaranteed by the originator of a cluster definition."
187Per definition, all files are identical on the different hosts of 200Per definition, all files are identical on the different hosts of
188a cluster (or site). This is not tested here; it must be 201a cluster (or site). This is not tested here; it must be
189guaranteed by the originator of a cluster definition." 202guaranteed by the originator of a cluster definition."
203 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
190 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 204 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
191 205
192 (let ((shadow-info-file shadow-test-info-file) 206 (let ((shadow-info-file shadow-test-info-file)
@@ -293,6 +307,7 @@ guaranteed by the originator of a cluster definition."
293 307
294(ert-deftest shadow-test02-files () 308(ert-deftest shadow-test02-files ()
295 "Check file manipulation functions." 309 "Check file manipulation functions."
310 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
296 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 311 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
297 312
298 (let ((shadow-info-file shadow-test-info-file) 313 (let ((shadow-info-file shadow-test-info-file)
@@ -368,6 +383,7 @@ guaranteed by the originator of a cluster definition."
368 383
369(ert-deftest shadow-test03-expand-cluster-in-file-name () 384(ert-deftest shadow-test03-expand-cluster-in-file-name ()
370 "Check canonical file name of a cluster or site." 385 "Check canonical file name of a cluster or site."
386 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
371 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 387 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
372 388
373 (let ((shadow-info-file shadow-test-info-file) 389 (let ((shadow-info-file shadow-test-info-file)
@@ -438,6 +454,7 @@ guaranteed by the originator of a cluster definition."
438 454
439(ert-deftest shadow-test04-contract-file-name () 455(ert-deftest shadow-test04-contract-file-name ()
440 "Check canonical file name of a cluster or site." 456 "Check canonical file name of a cluster or site."
457 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
441 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 458 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
442 459
443 (let ((shadow-info-file shadow-test-info-file) 460 (let ((shadow-info-file shadow-test-info-file)
@@ -498,6 +515,7 @@ guaranteed by the originator of a cluster definition."
498 515
499(ert-deftest shadow-test05-file-match () 516(ert-deftest shadow-test05-file-match ()
500 "Check `shadow-same-site' and `shadow-file-match'." 517 "Check `shadow-same-site' and `shadow-file-match'."
518 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
501 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 519 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
502 520
503 (let ((shadow-info-file shadow-test-info-file) 521 (let ((shadow-info-file shadow-test-info-file)
@@ -556,6 +574,7 @@ guaranteed by the originator of a cluster definition."
556 574
557(ert-deftest shadow-test06-literal-groups () 575(ert-deftest shadow-test06-literal-groups ()
558 "Check literal group definitions." 576 "Check literal group definitions."
577 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
559 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 578 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
560 579
561 (let ((shadow-info-file shadow-test-info-file) 580 (let ((shadow-info-file shadow-test-info-file)
@@ -620,6 +639,7 @@ guaranteed by the originator of a cluster definition."
620 639
621(ert-deftest shadow-test07-regexp-groups () 640(ert-deftest shadow-test07-regexp-groups ()
622 "Check regexp group definitions." 641 "Check regexp group definitions."
642 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
623 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 643 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
624 644
625 (let ((shadow-info-file shadow-test-info-file) 645 (let ((shadow-info-file shadow-test-info-file)
@@ -686,6 +706,7 @@ guaranteed by the originator of a cluster definition."
686 706
687(ert-deftest shadow-test08-shadow-todo () 707(ert-deftest shadow-test08-shadow-todo ()
688 "Check that needed shadows are added to todo." 708 "Check that needed shadows are added to todo."
709 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
689 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 710 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
690 (skip-unless (file-writable-p shadow-test-remote-temporary-file-directory)) 711 (skip-unless (file-writable-p shadow-test-remote-temporary-file-directory))
691 712
@@ -810,6 +831,7 @@ guaranteed by the originator of a cluster definition."
810 831
811(ert-deftest shadow-test09-shadow-copy-files () 832(ert-deftest shadow-test09-shadow-copy-files ()
812 "Check that needed shadow files are copied." 833 "Check that needed shadow files are copied."
834 (skip-unless (not (memq system-type '(windows-nt ms-dos))))
813 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory)) 835 (skip-unless (file-remote-p shadow-test-remote-temporary-file-directory))
814 836
815 (let ((backup-inhibited t) 837 (let ((backup-inhibited t)