aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrea Corallo2020-10-10 11:00:35 +0200
committerAndrea Corallo2020-10-10 11:00:35 +0200
commitf7e7ff4fb16bf8fc8e7662f21cd9843e9eb648e8 (patch)
tree8757f25ff7948b6b045bd60f5adf6ebf91ed75ee /test
parent138990bbda7ab228e3fde44710426c474b2c1086 (diff)
parent5824c209ba17b97978519ea62478c57010311e88 (diff)
downloademacs-f7e7ff4fb16bf8fc8e7662f21cd9843e9eb648e8.tar.gz
emacs-f7e7ff4fb16bf8fc8e7662f21cd9843e9eb648e8.zip
Merge remote-tracking branch 'savannah/master' into HEAD
Diffstat (limited to 'test')
-rw-r--r--test/lisp/calc/calc-tests.el62
-rw-r--r--test/lisp/comint-tests.el1
-rw-r--r--test/lisp/emacs-lisp/rx-tests.el5
-rw-r--r--test/lisp/international/mule-util-tests.el5
-rw-r--r--test/lisp/net/dbus-tests.el83
-rw-r--r--test/lisp/play/animate-tests.el4
-rw-r--r--test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl4
-rw-r--r--test/lisp/progmodes/cperl-mode-tests.el2
-rw-r--r--test/lisp/progmodes/ruby-mode-tests.el24
-rw-r--r--test/lisp/so-long-tests/so-long-tests.el2
-rw-r--r--test/manual/etags/CTAGS.good2
-rw-r--r--test/manual/etags/cp-src/functions.cpp2
-rw-r--r--test/manual/etags/prol-src/ordsets.prolog4
-rw-r--r--test/manual/etags/tex-src/texinfo.tex4
-rw-r--r--test/src/xdisp-tests.el24
15 files changed, 179 insertions, 49 deletions
diff --git a/test/lisp/calc/calc-tests.el b/test/lisp/calc/calc-tests.el
index 0df96a0e2db..4bced28a64f 100644
--- a/test/lisp/calc/calc-tests.el
+++ b/test/lisp/calc/calc-tests.el
@@ -574,6 +574,68 @@ An existing calc stack is reused, otherwise a new one is created."
574 86400)))) 574 86400))))
575 (should (equal (math-format-date d-1991-01-09-0600) "663400800"))))) 575 (should (equal (math-format-date d-1991-01-09-0600) "663400800")))))
576 576
577;; Reference implementations of binary shift functions:
578
579(defun calc-tests--clip (x w)
580 "Clip X to W bits, signed if W is negative, otherwise unsigned."
581 (if (>= w 0)
582 (logand x (- (ash 1 w) 1))
583 (let ((y (calc-tests--clip x (- w)))
584 (msb (ash 1 (- (- w) 1))))
585 (- y (ash (logand y msb) 1)))))
586
587(defun calc-tests--lsh (x n w)
588 "Logical shift left X by N steps, word size W."
589 (if (< n 0)
590 (calc-tests--rsh x (- n) w)
591 (calc-tests--clip (ash x n) w)))
592
593(defun calc-tests--rsh (x n w)
594 "Logical shift right X by N steps, word size W."
595 (if (< n 0)
596 (calc-tests--lsh x (- n) w)
597 (ash (calc-tests--clip x w) (- n))))
598
599(defun calc-tests--ash (x n w)
600 "Arithmetic shift left X by N steps, word size W."
601 (if (< n 0)
602 (calc-tests--rash x (- n) w)
603 (calc-tests--clip (ash x n) w)))
604
605(defun calc-tests--rash (x n w)
606 "Arithmetic shift right X by N steps, word size W."
607 (if (< n 0)
608 (calc-tests--ash x (- n) w)
609 ;; First sign-extend, then shift.
610 (let ((x-sext (calc-tests--clip x (- (abs w)))))
611 (calc-tests--clip (ash x-sext (- n)) w))))
612
613(defun calc-tests--rot (x n w)
614 "Rotate X left by N steps, word size W."
615 (let* ((aw (abs w))
616 (y (calc-tests--clip x aw))
617 (steps (mod n aw)))
618 (calc-tests--clip (logior (ash y steps) (ash y (- steps aw)))
619 w)))
620
621(ert-deftest calc-shift-binary ()
622 (dolist (w '(16 32))
623 (dolist (x '(0 1 #x1234 #x8000 #xabcd #xffff
624 #x12345678 #xabcdef12 #x80000000 #xffffffff
625 #x1234567890ab #x1234967890ab
626 -1 -14))
627 (dolist (n '(0 1 4 16 32 -1 -4 -16 -32))
628 (should (equal (calcFunc-lsh x n w)
629 (calc-tests--lsh x n w)))
630 (should (equal (calcFunc-rsh x n w)
631 (calc-tests--rsh x n w)))
632 (should (equal (calcFunc-ash x n w)
633 (calc-tests--ash x n w)))
634 (should (equal (calcFunc-rash x n w)
635 (calc-tests--rash x n w)))
636 (should (equal (calcFunc-rot x n w)
637 (calc-tests--rot x n w)))))))
638
577(provide 'calc-tests) 639(provide 'calc-tests)
578;;; calc-tests.el ends here 640;;; calc-tests.el ends here
579 641
diff --git a/test/lisp/comint-tests.el b/test/lisp/comint-tests.el
index 5b593409027..923f588e9e6 100644
--- a/test/lisp/comint-tests.el
+++ b/test/lisp/comint-tests.el
@@ -39,6 +39,7 @@
39 "Passphrase for key root@GNU.ORG: " ; plink 39 "Passphrase for key root@GNU.ORG: " ; plink
40 "[sudo] password for user:" ; Ubuntu sudo 40 "[sudo] password for user:" ; Ubuntu sudo
41 "[sudo] user 的密码:" ; localized 41 "[sudo] user 的密码:" ; localized
42 "doas (user@host) password:" ; OpenBSD doas
42 "PIN for user:" ; Bug#35523 43 "PIN for user:" ; Bug#35523
43 "Password (again):" 44 "Password (again):"
44 "Enter password:" 45 "Enter password:"
diff --git a/test/lisp/emacs-lisp/rx-tests.el b/test/lisp/emacs-lisp/rx-tests.el
index 3b01d89dbab..59d8c600a20 100644
--- a/test/lisp/emacs-lisp/rx-tests.el
+++ b/test/lisp/emacs-lisp/rx-tests.el
@@ -539,6 +539,9 @@
539 539
540(ert-deftest rx-compat () 540(ert-deftest rx-compat ()
541 "Test old symbol retained for compatibility (bug#37517)." 541 "Test old symbol retained for compatibility (bug#37517)."
542 (should (equal (rx-submatch-n '(group-n 3 (+ nonl) eol)) "\\(?3:.+$\\)"))) 542 (should (equal
543 (with-suppressed-warnings ((obsolete rx-submatch-n))
544 (rx-submatch-n '(group-n 3 (+ nonl) eol)))
545 "\\(?3:.+$\\)")))
543 546
544(provide 'rx-tests) 547(provide 'rx-tests)
diff --git a/test/lisp/international/mule-util-tests.el b/test/lisp/international/mule-util-tests.el
index cc199bd4972..0524dad88da 100644
--- a/test/lisp/international/mule-util-tests.el
+++ b/test/lisp/international/mule-util-tests.el
@@ -75,8 +75,9 @@
75 (eval 75 (eval
76 `(ert-deftest ,testname () 76 `(ert-deftest ,testname ()
77 ,testdoc 77 ,testdoc
78 (should (equal (apply 'truncate-string-to-width ',(car testdata)) 78 (let ((truncate-string-ellipsis "..."))
79 ,(cdr testdata))))))) 79 (should (equal (apply 'truncate-string-to-width ',(car testdata))
80 ,(cdr testdata))))))))
80 81
81(dotimes (i (length mule-util-test-truncate-data)) 82(dotimes (i (length mule-util-test-truncate-data))
82 (mule-util-test-truncate-create i)) 83 (mule-util-test-truncate-create i))
diff --git a/test/lisp/net/dbus-tests.el b/test/lisp/net/dbus-tests.el
index 7ebef5d2609..cd2e166c103 100644
--- a/test/lisp/net/dbus-tests.el
+++ b/test/lisp/net/dbus-tests.el
@@ -131,7 +131,7 @@
131 (should-error 131 (should-error
132 (dbus-check-arguments :session dbus--test-service :object-path) 132 (dbus-check-arguments :session dbus--test-service :object-path)
133 :type 'wrong-type-argument) 133 :type 'wrong-type-argument)
134 ;; Raises an error on stdin. 134 ;; Raises an error on stderr.
135 (should-error 135 (should-error
136 (dbus-check-arguments :session dbus--test-service :object-path "string") 136 (dbus-check-arguments :session dbus--test-service :object-path "string")
137 :type 'dbus-error) 137 :type 'dbus-error)
@@ -144,7 +144,7 @@
144 (should-error 144 (should-error
145 (dbus-check-arguments :session dbus--test-service :signature) 145 (dbus-check-arguments :session dbus--test-service :signature)
146 :type 'wrong-type-argument) 146 :type 'wrong-type-argument)
147 ;; Raises an error on stdin. 147 ;; Raises an error on stderr.
148 (should-error 148 (should-error
149 (dbus-check-arguments :session dbus--test-service :signature "string") 149 (dbus-check-arguments :session dbus--test-service :signature "string")
150 :type 'dbus-error) 150 :type 'dbus-error)
@@ -348,8 +348,12 @@
348 (should 348 (should
349 (dbus-check-arguments 349 (dbus-check-arguments
350 :session dbus--test-service '(:array :string "string1" "string2"))) 350 :session dbus--test-service '(:array :string "string1" "string2")))
351 (should
352 (dbus-check-arguments
353 :session dbus--test-service '(:array :signature "s" :signature "ao")))
351 ;; Empty array (of strings). 354 ;; Empty array (of strings).
352 (should (dbus-check-arguments :session dbus--test-service '(:array))) 355 (should (dbus-check-arguments :session dbus--test-service '(:array)))
356 ;; Empty array (of object paths).
353 (should 357 (should
354 (dbus-check-arguments :session dbus--test-service '(:array :signature "o"))) 358 (dbus-check-arguments :session dbus--test-service '(:array :signature "o")))
355 ;; Different element types. 359 ;; Different element types.
@@ -358,6 +362,13 @@
358 :session dbus--test-service 362 :session dbus--test-service
359 '(:array :string "string" :object-path "/object/path")) 363 '(:array :string "string" :object-path "/object/path"))
360 :type 'wrong-type-argument) 364 :type 'wrong-type-argument)
365 ;; Different variant types in array don't matter.
366 (should
367 (dbus-check-arguments
368 :session dbus--test-service
369 '(:array
370 (:variant :string "string1")
371 (:variant (:struct :string "string2" :object-path "/object/path")))))
361 372
362 ;; `:variant'. It contains exactly one element. 373 ;; `:variant'. It contains exactly one element.
363 (should 374 (should
@@ -383,7 +394,7 @@
383 (dbus-check-arguments 394 (dbus-check-arguments
384 :session dbus--test-service 395 :session dbus--test-service
385 '(:array (:dict-entry :string "string" :boolean nil)))) 396 '(:array (:dict-entry :string "string" :boolean nil))))
386 ;; This is an alternative syntax. FIXME: Shall this be supported? 397 ;; This is an alternative syntax.
387 (should 398 (should
388 (dbus-check-arguments 399 (dbus-check-arguments
389 :session dbus--test-service 400 :session dbus--test-service
@@ -414,14 +425,14 @@
414 (dbus-check-arguments 425 (dbus-check-arguments
415 :session dbus--test-service '(:dict-entry :string "string" :boolean t)) 426 :session dbus--test-service '(:dict-entry :string "string" :boolean t))
416 :type 'wrong-type-argument) 427 :type 'wrong-type-argument)
417 ;; Different dict entry types are not ched. FIXME: Add check. 428 ;; Different dict entry types in array.
418 ;; (should-error 429 (should-error
419 ;; (dbus-check-arguments 430 (dbus-check-arguments
420 ;; :session dbus--test-service 431 :session dbus--test-service
421 ;; '(:array 432 '(:array
422 ;; (:dict-entry :string "string1" :boolean t) 433 (:dict-entry :string "string1" :boolean t)
423 ;; (:dict-entry :string "string2" :object-path "/object/path"))) 434 (:dict-entry :string "string2" :object-path "/object/path")))
424 ;; :type 'wrong-type-argument) 435 :type 'wrong-type-argument)
425 436
426 ;; `:struct'. There is no restriction what could be an element of a struct. 437 ;; `:struct'. There is no restriction what could be an element of a struct.
427 (should 438 (should
@@ -434,6 +445,14 @@
434 ;; Empty struct. 445 ;; Empty struct.
435 (should-error 446 (should-error
436 (dbus-check-arguments :session dbus--test-service '(:struct)) 447 (dbus-check-arguments :session dbus--test-service '(:struct))
448 :type 'wrong-type-argument)
449 ;; Different struct types in array.
450 (should-error
451 (dbus-check-arguments
452 :session dbus--test-service
453 '(:array
454 (:struct :string "string1" :boolean t)
455 (:struct :object-path "/object/path")))
437 :type 'wrong-type-argument)) 456 :type 'wrong-type-argument))
438 457
439(defun dbus--test-register-service (bus) 458(defun dbus--test-register-service (bus)
@@ -697,7 +716,7 @@ is in progress."
697 "Received signal value in `dbus--test-signal-handler'.") 716 "Received signal value in `dbus--test-signal-handler'.")
698 717
699(defun dbus--test-signal-handler (&rest args) 718(defun dbus--test-signal-handler (&rest args)
700 "Signal handler for `dbus-test*-signal'." 719 "Signal handler for `dbus-test*-signal' and `dbus-test08-register-monitor'."
701 (setq dbus--test-signal-received args)) 720 (setq dbus--test-signal-received args))
702 721
703(defun dbus--test-timeout-handler (&rest _ignore) 722(defun dbus--test-timeout-handler (&rest _ignore)
@@ -1833,6 +1852,46 @@ The argument EXPECTED-ARGS is a list of expected arguments for the method."
1833 ;; Cleanup. 1852 ;; Cleanup.
1834 (dbus-unregister-service :session dbus--test-service))) 1853 (dbus-unregister-service :session dbus--test-service)))
1835 1854
1855(ert-deftest dbus-test08-register-monitor ()
1856 "Check monitor registration."
1857 :tags '(:expensive-test)
1858 (skip-unless dbus--test-enabled-session-bus)
1859
1860 (unwind-protect
1861 (let (registered)
1862 (should
1863 (equal
1864 (setq registered
1865 (dbus-register-monitor :session #'dbus--test-signal-handler))
1866 '((:monitor :session-private)
1867 (nil nil dbus--test-signal-handler))))
1868
1869 ;; Send a signal, shall be traced.
1870 (setq dbus--test-signal-received nil)
1871 (dbus-send-signal
1872 :session dbus--test-service dbus--test-path
1873 dbus--test-interface "Foo" "foo")
1874 (with-timeout (1 (dbus--test-timeout-handler))
1875 (while (null dbus--test-signal-received)
1876 (read-event nil nil 0.1)))
1877
1878 ;; Unregister monitor.
1879 (should (dbus-unregister-object registered))
1880 (should-not (dbus-unregister-object registered))
1881
1882 ;; Send a signal, shall not be traced.
1883 (setq dbus--test-signal-received nil)
1884 (dbus-send-signal
1885 :session dbus--test-service dbus--test-path
1886 dbus--test-interface "Foo" "foo")
1887 (with-timeout (1 (ignore))
1888 (while (null dbus--test-signal-received)
1889 (read-event nil nil 0.1)))
1890 (should-not dbus--test-signal-received))
1891
1892 ;; Cleanup.
1893 (dbus-unregister-service :session dbus--test-service)))
1894
1836(defun dbus-test-all (&optional interactive) 1895(defun dbus-test-all (&optional interactive)
1837 "Run all tests for \\[dbus]." 1896 "Run all tests for \\[dbus]."
1838 (interactive "p") 1897 (interactive "p")
diff --git a/test/lisp/play/animate-tests.el b/test/lisp/play/animate-tests.el
index 8af1517ffa4..7c41d3b7761 100644
--- a/test/lisp/play/animate-tests.el
+++ b/test/lisp/play/animate-tests.el
@@ -36,8 +36,8 @@
36 36
37 37
38 38
39Happy Birthday, 39 Happy Birthday,
40 Foo 40 Foo
41 41
42 42
43 You are my sunshine, 43 You are my sunshine,
diff --git a/test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl b/test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl
index 4a9842ffa56..8c1883a10f1 100644
--- a/test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl
+++ b/test/lisp/progmodes/cperl-mode-resources/cperl-indent-exp.pl
@@ -26,7 +26,7 @@ say "boring loop";
26} 26}
27continue 27continue
28{ 28{
29last; # no endless loop, though 29last;
30} 30}
31} 31}
32# -------- while loop: expected output -------- 32# -------- while loop: expected output --------
@@ -34,7 +34,7 @@ last; # no endless loop, though
34 while (1) { 34 while (1) {
35 say "boring loop"; 35 say "boring loop";
36 } continue { 36 } continue {
37 last; # no endless loop, though 37 last;
38 } 38 }
39} 39}
40# -------- while loop: end -------- 40# -------- while loop: end --------
diff --git a/test/lisp/progmodes/cperl-mode-tests.el b/test/lisp/progmodes/cperl-mode-tests.el
index f0ff8e90052..20be7ed68cc 100644
--- a/test/lisp/progmodes/cperl-mode-tests.el
+++ b/test/lisp/progmodes/cperl-mode-tests.el
@@ -148,6 +148,7 @@ under timeout control."
148These exercise some standard blocks and also the special 148These exercise some standard blocks and also the special
149treatment for Perl expressions where a closing paren isn't the 149treatment for Perl expressions where a closing paren isn't the
150end of the statement." 150end of the statement."
151 (skip-unless (eq cperl-test-mode #'cperl-mode))
151 (let ((file (expand-file-name "cperl-indent-exp.pl" 152 (let ((file (expand-file-name "cperl-indent-exp.pl"
152 cperl-mode-tests-data-directory))) 153 cperl-mode-tests-data-directory)))
153 (with-temp-buffer 154 (with-temp-buffer
@@ -166,6 +167,7 @@ end of the statement."
166 got) 167 got)
167 (with-temp-buffer 168 (with-temp-buffer
168 (insert code) 169 (insert code)
170 (cperl-mode)
169 (goto-char (point-min)) 171 (goto-char (point-min))
170 (cperl-indent-exp) ; here we go! 172 (cperl-indent-exp) ; here we go!
171 (setq expected (concat "test case " name ":\n" expected)) 173 (setq expected (concat "test case " name ":\n" expected))
diff --git a/test/lisp/progmodes/ruby-mode-tests.el b/test/lisp/progmodes/ruby-mode-tests.el
index 5988a495238..6675fb28f8e 100644
--- a/test/lisp/progmodes/ruby-mode-tests.el
+++ b/test/lisp/progmodes/ruby-mode-tests.el
@@ -717,7 +717,7 @@ VALUES-PLIST is a list with alternating index and value elements."
717 (ruby-with-temp-buffer ruby-sexp-test-example 717 (ruby-with-temp-buffer ruby-sexp-test-example
718 (goto-char (point-min)) 718 (goto-char (point-min))
719 (forward-line 1) 719 (forward-line 1)
720 (ruby-forward-sexp) 720 (forward-sexp)
721 (should (= 8 (line-number-at-pos))))) 721 (should (= 8 (line-number-at-pos)))))
722 722
723(ert-deftest ruby-backward-sexp-skips-method-calls-with-keyword-names () 723(ert-deftest ruby-backward-sexp-skips-method-calls-with-keyword-names ()
@@ -725,7 +725,7 @@ VALUES-PLIST is a list with alternating index and value elements."
725 (goto-char (point-min)) 725 (goto-char (point-min))
726 (forward-line 7) 726 (forward-line 7)
727 (end-of-line) 727 (end-of-line)
728 (ruby-backward-sexp) 728 (backward-sexp)
729 (should (= 2 (line-number-at-pos))))) 729 (should (= 2 (line-number-at-pos)))))
730 730
731(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-no-args () 731(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-no-args ()
@@ -734,7 +734,7 @@ VALUES-PLIST is a list with alternating index and value elements."
734 "proc do 734 "proc do
735 |end") 735 |end")
736 (search-backward "do\n") 736 (search-backward "do\n")
737 (ruby-forward-sexp) 737 (forward-sexp)
738 (should (eobp)))) 738 (should (eobp))))
739 739
740(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-no-args () 740(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-no-args ()
@@ -743,7 +743,7 @@ VALUES-PLIST is a list with alternating index and value elements."
743 "proc do 743 "proc do
744 |end") 744 |end")
745 (goto-char (point-max)) 745 (goto-char (point-max))
746 (ruby-backward-sexp) 746 (backward-sexp)
747 (should (looking-at "do$")))) 747 (should (looking-at "do$"))))
748 748
749(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-empty-args () 749(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-empty-args ()
@@ -752,7 +752,7 @@ VALUES-PLIST is a list with alternating index and value elements."
752 "proc do || 752 "proc do ||
753 |end") 753 |end")
754 (search-backward "do ") 754 (search-backward "do ")
755 (ruby-forward-sexp) 755 (forward-sexp)
756 (should (eobp)))) 756 (should (eobp))))
757 757
758(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-empty-args () 758(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-empty-args ()
@@ -761,7 +761,7 @@ VALUES-PLIST is a list with alternating index and value elements."
761 "proc do || 761 "proc do ||
762 |end") 762 |end")
763 (goto-char (point-max)) 763 (goto-char (point-max))
764 (ruby-backward-sexp) 764 (backward-sexp)
765 (should (looking-at "do ")))) 765 (should (looking-at "do "))))
766 766
767(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-args () 767(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-args ()
@@ -770,7 +770,7 @@ VALUES-PLIST is a list with alternating index and value elements."
770 "proc do |a,b| 770 "proc do |a,b|
771 |end") 771 |end")
772 (search-backward "do ") 772 (search-backward "do ")
773 (ruby-forward-sexp) 773 (forward-sexp)
774 (should (eobp)))) 774 (should (eobp))))
775 775
776(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-args () 776(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-args ()
@@ -779,7 +779,7 @@ VALUES-PLIST is a list with alternating index and value elements."
779 "proc do |a,b| 779 "proc do |a,b|
780 |end") 780 |end")
781 (goto-char (point-max)) 781 (goto-char (point-max))
782 (ruby-backward-sexp) 782 (backward-sexp)
783 (should (looking-at "do ")))) 783 (should (looking-at "do "))))
784 784
785(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-any-args () 785(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-any-args ()
@@ -788,7 +788,7 @@ VALUES-PLIST is a list with alternating index and value elements."
788 "proc do |*| 788 "proc do |*|
789 |end") 789 |end")
790 (search-backward "do ") 790 (search-backward "do ")
791 (ruby-forward-sexp) 791 (forward-sexp)
792 (should (eobp)))) 792 (should (eobp))))
793 793
794(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-expanded-one-arg () 794(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-expanded-one-arg ()
@@ -797,7 +797,7 @@ VALUES-PLIST is a list with alternating index and value elements."
797 "proc do |a,| 797 "proc do |a,|
798 |end") 798 |end")
799 (search-backward "do ") 799 (search-backward "do ")
800 (ruby-forward-sexp) 800 (forward-sexp)
801 (should (eobp)))) 801 (should (eobp))))
802 802
803(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-one-and-any-args () 803(ert-deftest ruby-forward-sexp-jumps-do-end-block-with-one-and-any-args ()
@@ -806,7 +806,7 @@ VALUES-PLIST is a list with alternating index and value elements."
806 "proc do |a,*| 806 "proc do |a,*|
807 |end") 807 |end")
808 (search-backward "do ") 808 (search-backward "do ")
809 (ruby-forward-sexp) 809 (forward-sexp)
810 (should (eobp)))) 810 (should (eobp))))
811 811
812(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-one-and-any-args () 812(ert-deftest ruby-backward-sexp-jumps-do-end-block-with-one-and-any-args ()
@@ -815,7 +815,7 @@ VALUES-PLIST is a list with alternating index and value elements."
815 "proc do |a,*| 815 "proc do |a,*|
816 |end") 816 |end")
817 (goto-char (point-max)) 817 (goto-char (point-max))
818 (ruby-backward-sexp) 818 (backward-sexp)
819 (should (looking-at "do ")))) 819 (should (looking-at "do "))))
820 820
821(ert-deftest ruby-toggle-string-quotes-quotes-correctly () 821(ert-deftest ruby-toggle-string-quotes-quotes-correctly ()
diff --git a/test/lisp/so-long-tests/so-long-tests.el b/test/lisp/so-long-tests/so-long-tests.el
index ffffe070ba6..b72ee2fd612 100644
--- a/test/lisp/so-long-tests/so-long-tests.el
+++ b/test/lisp/so-long-tests/so-long-tests.el
@@ -181,7 +181,7 @@
181 ;; The various 'window change functions' are now invoked by the 181 ;; The various 'window change functions' are now invoked by the
182 ;; redisplay, and redisplay does nothing at all in batch mode, 182 ;; redisplay, and redisplay does nothing at all in batch mode,
183 ;; so we cannot test under this revised behavior. Refer to: 183 ;; so we cannot test under this revised behavior. Refer to:
184 ;; https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg00971.html 184 ;; https://lists.gnu.org/r/emacs-devel/2019-10/msg00971.html
185 ;; For interactive (non-batch) test runs, calling `redisplay' 185 ;; For interactive (non-batch) test runs, calling `redisplay'
186 ;; does do the trick; so do that first. 186 ;; does do the trick; so do that first.
187 (redisplay) 187 (redisplay)
diff --git a/test/manual/etags/CTAGS.good b/test/manual/etags/CTAGS.good
index 519315c6fdd..5e582434a62 100644
--- a/test/manual/etags/CTAGS.good
+++ b/test/manual/etags/CTAGS.good
@@ -1835,7 +1835,7 @@ Z c-src/h.h 100
1835\Ealphaenumerate tex-src/texinfo.tex /^\\def\\Ealphaenumerate{\\Eenumerate}$/ 1835\Ealphaenumerate tex-src/texinfo.tex /^\\def\\Ealphaenumerate{\\Eenumerate}$/
1836\Ecapsenumerate tex-src/texinfo.tex /^\\def\\Ecapsenumerate{\\Eenumerate}$/ 1836\Ecapsenumerate tex-src/texinfo.tex /^\\def\\Ecapsenumerate{\\Eenumerate}$/
1837\Ecartouche tex-src/texinfo.tex /^\\def\\Ecartouche{%$/ 1837\Ecartouche tex-src/texinfo.tex /^\\def\\Ecartouche{%$/
1838\Edescription tex-src/texinfo.tex /^\\def\\Edescription{\\Etable}% Neccessary kludge.$/ 1838\Edescription tex-src/texinfo.tex /^\\def\\Edescription{\\Etable}% Necessary kludge.$/
1839\Edisplay tex-src/texinfo.tex /^\\def\\Edisplay{\\endgroup\\afterenvbreak}%$/ 1839\Edisplay tex-src/texinfo.tex /^\\def\\Edisplay{\\endgroup\\afterenvbreak}%$/
1840\Eexample tex-src/texinfo.tex /^\\def\\Eexample{\\Elisp}$/ 1840\Eexample tex-src/texinfo.tex /^\\def\\Eexample{\\Elisp}$/
1841\Eflushleft tex-src/texinfo.tex /^\\def\\Eflushleft{\\endgroup\\afterenvbreak}%$/ 1841\Eflushleft tex-src/texinfo.tex /^\\def\\Eflushleft{\\endgroup\\afterenvbreak}%$/
diff --git a/test/manual/etags/cp-src/functions.cpp b/test/manual/etags/cp-src/functions.cpp
index 7c353d161a1..ddd78f14d9b 100644
--- a/test/manual/etags/cp-src/functions.cpp
+++ b/test/manual/etags/cp-src/functions.cpp
@@ -223,7 +223,7 @@ int WorkingDays(Date a, Date b){
223 return(wdays); 223 return(wdays);
224} 224}
225 225
226Date StartDay(Date a,int days){//Function to calculate the apropriate start day to finish in days working days 226Date StartDay(Date a,int days){//Function to calculate the appropriate start day to finish in days working days
227 Date tmp; 227 Date tmp;
228 int wdays=0; 228 int wdays=0;
229 if ( ! a.set() ) 229 if ( ! a.set() )
diff --git a/test/manual/etags/prol-src/ordsets.prolog b/test/manual/etags/prol-src/ordsets.prolog
index 7192129fdce..0fa70f903f0 100644
--- a/test/manual/etags/prol-src/ordsets.prolog
+++ b/test/manual/etags/prol-src/ordsets.prolog
@@ -120,7 +120,7 @@ ord_intersect(>, Head1, Tail1, _, [Head2|Tail2]) :-
120 120
121 121
122% ord_intersection(+Set1, +Set2, ?Intersection) 122% ord_intersection(+Set1, +Set2, ?Intersection)
123% is true when Intersection is the intersecton of Set1 123% is true when Intersection is the intersection of Set1
124% and Set2, provided that Set1 and Set2 are ordered sets. 124% and Set2, provided that Set1 and Set2 are ordered sets.
125 125
126ord_intersection([], _, []). 126ord_intersection([], _, []).
@@ -144,7 +144,7 @@ ord_intersection3([Head2|Tail2], Head1, Tail1, Intersection) :-
144 144
145% ord_intersection(+Set1, +Set2, ?Intersection, ?Difference) 145% ord_intersection(+Set1, +Set2, ?Intersection, ?Difference)
146% is true when Intersection is the intersection of Set1 and Set2, 146% is true when Intersection is the intersection of Set1 and Set2,
147% and Differens is Set2 \ Set1 (like in ord_union/4), 147% and Difference is Set2 \ Set1 (like in ord_union/4),
148% provided that Set1 and Set2 are ordered sets. 148% provided that Set1 and Set2 are ordered sets.
149 149
150ord_intersection([], Set2, [], Set2). 150ord_intersection([], Set2, [], Set2).
diff --git a/test/manual/etags/tex-src/texinfo.tex b/test/manual/etags/tex-src/texinfo.tex
index cece96fac56..8d84f513ba5 100644
--- a/test/manual/etags/tex-src/texinfo.tex
+++ b/test/manual/etags/tex-src/texinfo.tex
@@ -1074,7 +1074,7 @@ July\or August\or September\or October\or November\or December\fi
1074\def\tablez #1#2#3#4#5#6{% 1074\def\tablez #1#2#3#4#5#6{%
1075\aboveenvbreak % 1075\aboveenvbreak %
1076\begingroup % 1076\begingroup %
1077\def\Edescription{\Etable}% Neccessary kludge. 1077\def\Edescription{\Etable}% Necessary kludge.
1078\let\itemindex=#1% 1078\let\itemindex=#1%
1079\ifnum 0#3>0 \advance \leftskip by #3\mil \fi % 1079\ifnum 0#3>0 \advance \leftskip by #3\mil \fi %
1080\ifnum 0#4>0 \tableindent=#4\mil \fi % 1080\ifnum 0#4>0 \tableindent=#4\mil \fi %
@@ -2937,7 +2937,7 @@ July\or August\or September\or October\or November\or December\fi
2937\setbox0=\hbox{\printednodename}% 2937\setbox0=\hbox{\printednodename}%
2938\ifdim \wd0=0pt% 2938\ifdim \wd0=0pt%
2939\def\printednodename{\ignorespaces #1}% 2939\def\printednodename{\ignorespaces #1}%
2940%%% Uncommment the following line to make the actual chapter or section title 2940%%% Uncomment the following line to make the actual chapter or section title
2941%%% appear inside the square brackets. 2941%%% appear inside the square brackets.
2942%\def\printednodename{#1-title}% 2942%\def\printednodename{#1-title}%
2943\fi% 2943\fi%
diff --git a/test/src/xdisp-tests.el b/test/src/xdisp-tests.el
index 3d0d0f58302..95c39dacc3e 100644
--- a/test/src/xdisp-tests.el
+++ b/test/src/xdisp-tests.el
@@ -33,19 +33,21 @@
33 (lambda () 33 (lambda ()
34 (insert "hello") 34 (insert "hello")
35 (let ((ol (make-overlay (point) (point))) 35 (let ((ol (make-overlay (point) (point)))
36 (redisplay-skip-initial-frame nil)
36 (max-mini-window-height 1) 37 (max-mini-window-height 1)
37 (text "askdjfhaklsjdfhlkasjdfhklasdhflkasdhflkajsdhflkashdfkljahsdlfkjahsdlfkjhasldkfhalskdjfhalskdfhlaksdhfklasdhflkasdhflkasdhflkajsdhklajsdgh")) 38 (text "askdjfhaklsjdfhlkasjdfhklasdhflkasdhflkajsdhflkashdfkljahsdlfkjahsdlfkjhasldkfhalskdjfhalskdfhlaksdhfklasdhflkasdhflkasdhflkajsdhklajsdgh"))
38 ;; (save-excursion (insert text)) 39 ;; (save-excursion (insert text))
39 ;; (sit-for 2) 40 ;; (sit-for 2)
40 ;; (delete-region (point) (point-max)) 41 ;; (delete-region (point) (point-max))
41 (put-text-property 0 1 'cursor t text) 42 (put-text-property 0 1 'cursor t text)
42 (overlay-put ol 'after-string text) 43 (overlay-put ol 'after-string text)
43 (redisplay 'force) 44 (let ((executing-kbd-macro nil)) ;Don't skip redisplay
44 (throw 'result 45 (redisplay 'force))
45 ;; Make sure we do the see "hello" text. 46 (throw 'result
46 (prog1 (equal (window-start) (point-min)) 47 ;; Make sure we do the see "hello" text.
47 ;; (list (window-start) (window-end) (window-width)) 48 (prog1 (equal (window-start) (point-min))
48 (delete-overlay ol))))) 49 ;; (list (window-start) (window-end) (window-width))
50 (delete-overlay ol)))))
49 (let ((executing-kbd-macro t)) ;Force real minibuffer in `read-string'. 51 (let ((executing-kbd-macro t)) ;Force real minibuffer in `read-string'.
50 (read-string "toto: "))))))) 52 (read-string "toto: ")))))))
51 53