diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/kmacro-tests.el | 2 | ||||
| -rw-r--r-- | test/lisp/net/tramp-tests.el | 7 | ||||
| -rw-r--r-- | test/lisp/progmodes/flymake-tests.el | 12 | ||||
| -rw-r--r-- | test/lisp/simple-tests.el | 2 |
4 files changed, 16 insertions, 7 deletions
diff --git a/test/lisp/kmacro-tests.el b/test/lisp/kmacro-tests.el index a691ec84549..9f3eeafe486 100644 --- a/test/lisp/kmacro-tests.el +++ b/test/lisp/kmacro-tests.el | |||
| @@ -248,7 +248,7 @@ cause the current test to fail." | |||
| 248 | (kmacro-tests-simulate-command '(kmacro-set-counter 1)) | 248 | (kmacro-tests-simulate-command '(kmacro-set-counter 1)) |
| 249 | (kmacro-tests-should-insert "1" | 249 | (kmacro-tests-should-insert "1" |
| 250 | (kmacro-tests-simulate-command '(kmacro-insert-counter nil))) | 250 | (kmacro-tests-simulate-command '(kmacro-insert-counter nil))) |
| 251 | ;; Using universal arg to to set counter should reset to starting value. | 251 | ;; Using universal arg to set counter should reset to starting value. |
| 252 | (kmacro-tests-simulate-command '(kmacro-set-counter (4)) '(4)) | 252 | (kmacro-tests-simulate-command '(kmacro-set-counter (4)) '(4)) |
| 253 | (kmacro-tests-should-insert "5" | 253 | (kmacro-tests-should-insert "5" |
| 254 | (kmacro-tests-simulate-command '(kmacro-insert-counter nil)))) | 254 | (kmacro-tests-simulate-command '(kmacro-insert-counter nil)))) |
diff --git a/test/lisp/net/tramp-tests.el b/test/lisp/net/tramp-tests.el index a8fe06d4e67..7cc0779b81c 100644 --- a/test/lisp/net/tramp-tests.el +++ b/test/lisp/net/tramp-tests.el | |||
| @@ -140,7 +140,7 @@ This shall used dynamically bound only.") | |||
| 140 | 140 | ||
| 141 | (defmacro tramp--test-instrument-test-case (verbose &rest body) | 141 | (defmacro tramp--test-instrument-test-case (verbose &rest body) |
| 142 | "Run BODY with `tramp-verbose' equal VERBOSE. | 142 | "Run BODY with `tramp-verbose' equal VERBOSE. |
| 143 | Print the the content of the Tramp debug buffer, if BODY does not | 143 | Print the content of the Tramp debug buffer, if BODY does not |
| 144 | eval properly in `should' or `should-not'. `should-error' is not | 144 | eval properly in `should' or `should-not'. `should-error' is not |
| 145 | handled properly. BODY shall not contain a timeout." | 145 | handled properly. BODY shall not contain a timeout." |
| 146 | (declare (indent 1) (debug (natnump body))) | 146 | (declare (indent 1) (debug (natnump body))) |
| @@ -2105,7 +2105,10 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." | |||
| 2105 | (should-error (make-directory tmp-name2) :type 'file-error) | 2105 | (should-error (make-directory tmp-name2) :type 'file-error) |
| 2106 | (make-directory tmp-name2 'parents) | 2106 | (make-directory tmp-name2 'parents) |
| 2107 | (should (file-directory-p tmp-name2)) | 2107 | (should (file-directory-p tmp-name2)) |
| 2108 | (should (file-accessible-directory-p tmp-name2))) | 2108 | (should (file-accessible-directory-p tmp-name2)) |
| 2109 | ;; If PARENTS is non-nil, `make-directory' shall not | ||
| 2110 | ;; signal an error when DIR exists already. | ||
| 2111 | (make-directory tmp-name2 'parents)) | ||
| 2109 | 2112 | ||
| 2110 | ;; Cleanup. | 2113 | ;; Cleanup. |
| 2111 | (ignore-errors (delete-directory tmp-name1 'recursive)))))) | 2114 | (ignore-errors (delete-directory tmp-name1 'recursive)))))) |
diff --git a/test/lisp/progmodes/flymake-tests.el b/test/lisp/progmodes/flymake-tests.el index 5e042f2b082..0b29b6a9715 100644 --- a/test/lisp/progmodes/flymake-tests.el +++ b/test/lisp/progmodes/flymake-tests.el | |||
| @@ -73,7 +73,9 @@ SEVERITY-PREDICATE is used to setup | |||
| 73 | (when sev-pred-supplied-p | 73 | (when sev-pred-supplied-p |
| 74 | (setq-local flymake-proc-diagnostic-type-pred severity-predicate)) | 74 | (setq-local flymake-proc-diagnostic-type-pred severity-predicate)) |
| 75 | (goto-char (point-min)) | 75 | (goto-char (point-min)) |
| 76 | (unless flymake-mode (flymake-mode 1)) | 76 | (let ((flymake-start-on-flymake-mode nil)) |
| 77 | (unless flymake-mode (flymake-mode 1))) | ||
| 78 | (flymake-start) | ||
| 77 | (flymake-tests--wait-for-backends) | 79 | (flymake-tests--wait-for-backends) |
| 78 | (funcall fn))) | 80 | (funcall fn))) |
| 79 | (and buffer | 81 | (and buffer |
| @@ -230,7 +232,9 @@ SEVERITY-PREDICATE is used to setup | |||
| 230 | 'crashing-backend | 232 | 'crashing-backend |
| 231 | )) | 233 | )) |
| 232 | (flymake-wrap-around nil)) | 234 | (flymake-wrap-around nil)) |
| 233 | (flymake-mode) | 235 | (let ((flymake-start-on-flymake-mode nil)) |
| 236 | (flymake-mode)) | ||
| 237 | (flymake-start) | ||
| 234 | 238 | ||
| 235 | (flymake-tests--assert-set (flymake-running-backends) | 239 | (flymake-tests--assert-set (flymake-running-backends) |
| 236 | (error-backend warning-backend panicking-backend) | 240 | (error-backend warning-backend panicking-backend) |
| @@ -299,7 +303,9 @@ SEVERITY-PREDICATE is used to setup | |||
| 299 | (let ((flymake-diagnostic-functions | 303 | (let ((flymake-diagnostic-functions |
| 300 | (list 'eager-backend)) | 304 | (list 'eager-backend)) |
| 301 | (flymake-wrap-around nil)) | 305 | (flymake-wrap-around nil)) |
| 302 | (flymake-mode) | 306 | (let ((flymake-start-on-flymake-mode nil)) |
| 307 | (flymake-mode)) | ||
| 308 | (flymake-start) | ||
| 303 | (flymake-tests--assert-set (flymake-running-backends) | 309 | (flymake-tests--assert-set (flymake-running-backends) |
| 304 | (eager-backend) ()) | 310 | (eager-backend) ()) |
| 305 | (cl-loop until tick repeat 4 do (sleep-for 0.2)) | 311 | (cl-loop until tick repeat 4 do (sleep-for 0.2)) |
diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el index 90a627f261e..5133e686a15 100644 --- a/test/lisp/simple-tests.el +++ b/test/lisp/simple-tests.el | |||
| @@ -188,7 +188,7 @@ | |||
| 188 | ;; From 24 Oct - 21 Nov 2015, `open-line' took a second argument | 188 | ;; From 24 Oct - 21 Nov 2015, `open-line' took a second argument |
| 189 | ;; INTERACTIVE and ran `post-self-insert-hook' if the argument was | 189 | ;; INTERACTIVE and ran `post-self-insert-hook' if the argument was |
| 190 | ;; true. This test tested that. Currently, however, `open-line' | 190 | ;; true. This test tested that. Currently, however, `open-line' |
| 191 | ;; does not run run `post-self-insert-hook' at all, so for now | 191 | ;; does not run `post-self-insert-hook' at all, so for now |
| 192 | ;; this test just makes sure that it doesn't. | 192 | ;; this test just makes sure that it doesn't. |
| 193 | (ert-deftest open-line-hook () | 193 | (ert-deftest open-line-hook () |
| 194 | (let* ((x 0) | 194 | (let* ((x 0) |