aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2023-09-03 21:04:02 +0200
committerStefan Kangas2023-09-04 18:25:18 +0200
commit7975c811d32b6c08b4eab9e8faee615ab69c9e34 (patch)
tree2b518650de2eb2053ba28cfa9e39d4a3117de4a7
parent62f7760e61900b6ac0fb513294129130446b17e7 (diff)
downloademacs-7975c811d32b6c08b4eab9e8faee615ab69c9e34.tar.gz
emacs-7975c811d32b6c08b4eab9e8faee615ab69c9e34.zip
Use new ERT `skip-when` macro in tests
* test/lisp/autorevert-tests.el (auto-revert-test02-auto-revert-deleted-file): * test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests): * test/lisp/emacs-lisp/find-func-tests.el (find-func-tests--library-completion): * test/lisp/eshell/esh-proc-tests.el (esh-proc-test/kill-pipeline): * test/lisp/filenotify-tests.el (file-notify-test11-symlinks): * test/lisp/ibuffer-tests.el (ibuffer-0autoload): * test/lisp/international/ucs-normalize-tests.el (ucs-normalize-part1): * test/lisp/net/network-stream-tests.el (echo-server-nowait) (connect-to-tls-ipv4-nowait, connect-to-tls-ipv6-nowait) (open-network-stream-tls-wait, open-network-stream-tls-nowait) (open-network-stream-tls, open-network-stream-tls-nocert) (open-gnutls-stream-new-api-nowait) (open-gnutls-stream-old-api-nowait): * test/lisp/progmodes/cperl-mode-tests.el (cperl-test-bug-10483) (cperl-test-hyperactive-electric-else): * test/lisp/progmodes/elisp-mode-tests.el (eval-last-sexp-print-format-sym-echo) (eval-last-sexp-print-format-small-int-echo) (eval-last-sexp-print-format-large-int-echo) (eval-defun-prints-edebug-when-instrumented): * test/lisp/progmodes/python-tests.el (python-ffap-module-path-1): * test/lisp/shadowfile-tests.el (shadow-test00-clusters) (shadow-test01-sites, shadow-test02-files) (shadow-test03-expand-cluster-in-file-name) (shadow-test04-contract-file-name, shadow-test05-file-match) (shadow-test06-literal-groups, shadow-test07-regexp-groups) (shadow-test08-shadow-todo, shadow-test09-shadow-copy-files): * test/lisp/simple-tests.el (eval-expression-print-format-sym-echo) (eval-expression-print-format-small-int-echo) (eval-expression-print-format-large-int-echo): * test/lisp/term-tests.el (term-simple-lines) (term-carriage-return, term-line-wrap, term-colors) (term-colors-bold-is-bright, term-cursor-movement) (term-scrolling-region, term-set-directory) (term-line-wrapping-then-motion, term-to-margin): * test/lisp/thread-tests.el (thread-tests-list-threads-error-when-not-configured): * test/lisp/vc/vc-tests.el (backend): * test/manual/scroll-tests.el (scroll-tests-scroll-margin-0) (scroll-tests-scroll-margin-negative) (scroll-tests-scroll-margin-max) (scroll-tests-scroll-margin-over-max) (scroll-tests-scroll-margin-whole-window): * test/misc/test-custom-libs.el (test-custom-libs): * test/src/emacs-module-tests.el (module/async-pipe): * test/src/fileio-tests.el (fileio-tests--odd-symlink-chars): * test/src/filelock-tests.el (filelock-tests-lock-spoiled) (filelock-tests-file-locked-p-spoiled) (filelock-tests-unlock-spoiled) (filelock-tests-kill-buffer-spoiled) (filelock-tests-detect-external-change): * test/src/image-tests.el (image-tests-image-size/error-on-nongraphical-display) (image-tests-image-mask-p/error-on-nongraphical-display) (image-tests-image-metadata/error-on-nongraphical-display): * test/src/process-tests.el (make-process/mix-stderr) (process-tests/fd-setsize-no-crash/make-network-process) (process-tests/fd-setsize-no-crash/make-serial-process): Use ERT `skip-when` macro in tests.
-rw-r--r--test/lisp/autorevert-tests.el2
-rw-r--r--test/lisp/emacs-lisp/benchmark-tests.el4
-rw-r--r--test/lisp/emacs-lisp/find-func-tests.el2
-rw-r--r--test/lisp/eshell/esh-proc-tests.el2
-rw-r--r--test/lisp/filenotify-tests.el2
-rw-r--r--test/lisp/ibuffer-tests.el2
-rw-r--r--test/lisp/international/ucs-normalize-tests.el4
-rw-r--r--test/lisp/net/network-stream-tests.el20
-rw-r--r--test/lisp/progmodes/cperl-mode-tests.el6
-rw-r--r--test/lisp/progmodes/elisp-mode-tests.el8
-rw-r--r--test/lisp/progmodes/python-tests.el2
-rw-r--r--test/lisp/shadowfile-tests.el20
-rw-r--r--test/lisp/simple-tests.el6
-rw-r--r--test/lisp/term-tests.el20
-rw-r--r--test/lisp/thread-tests.el2
-rw-r--r--test/lisp/vc/vc-tests.el4
-rw-r--r--test/manual/scroll-tests.el10
-rw-r--r--test/misc/test-custom-libs.el2
-rw-r--r--test/src/emacs-module-tests.el2
-rw-r--r--test/src/fileio-tests.el2
-rw-r--r--test/src/filelock-tests.el10
-rw-r--r--test/src/image-tests.el6
-rw-r--r--test/src/process-tests.el6
23 files changed, 72 insertions, 72 deletions
diff --git a/test/lisp/autorevert-tests.el b/test/lisp/autorevert-tests.el
index 8dbb5d2a496..e01ce82858b 100644
--- a/test/lisp/autorevert-tests.el
+++ b/test/lisp/autorevert-tests.el
@@ -257,7 +257,7 @@ This expects `auto-revert--messages' to be bound by
257 ;; Repeated unpredictable failures, bug#32645. 257 ;; Repeated unpredictable failures, bug#32645.
258 :tags '(:unstable) 258 :tags '(:unstable)
259 ;; Unlikely to be hydra-specific? 259 ;; Unlikely to be hydra-specific?
260 ;; (skip-unless (not (getenv "EMACS_HYDRA_CI"))) 260 ;; (skip-when (getenv "EMACS_HYDRA_CI"))
261 (with-auto-revert-test 261 (with-auto-revert-test
262 (ert-with-temp-file tmpfile 262 (ert-with-temp-file tmpfile
263 (let (;; Try to catch bug#32645. 263 (let (;; Try to catch bug#32645.
diff --git a/test/lisp/emacs-lisp/benchmark-tests.el b/test/lisp/emacs-lisp/benchmark-tests.el
index 99b5b142c37..7fe3be2157f 100644
--- a/test/lisp/emacs-lisp/benchmark-tests.el
+++ b/test/lisp/emacs-lisp/benchmark-tests.el
@@ -25,8 +25,8 @@
25(ert-deftest benchmark-tests () 25(ert-deftest benchmark-tests ()
26 ;; Avoid fork failures on Cygwin. See bug#62450 and etc/PROBLEMS 26 ;; Avoid fork failures on Cygwin. See bug#62450 and etc/PROBLEMS
27 ;; ("Fork failures in a build with native compilation"). 27 ;; ("Fork failures in a build with native compilation").
28 (skip-unless (not (and (eq system-type 'cygwin) 28 (skip-when (and (eq system-type 'cygwin)
29 (featurep 'native-compile)))) 29 (featurep 'native-compile)))
30 (let (str t-long t-short m) 30 (let (str t-long t-short m)
31 (should (consp (benchmark-run nil (setq m (1+ 0))))) 31 (should (consp (benchmark-run nil (setq m (1+ 0)))))
32 (should (consp (benchmark-run 1 (setq m (1+ 0))))) 32 (should (consp (benchmark-run 1 (setq m (1+ 0)))))
diff --git a/test/lisp/emacs-lisp/find-func-tests.el b/test/lisp/emacs-lisp/find-func-tests.el
index 7251b76157b..59ecb5ab187 100644
--- a/test/lisp/emacs-lisp/find-func-tests.el
+++ b/test/lisp/emacs-lisp/find-func-tests.el
@@ -32,7 +32,7 @@
32(ert-deftest find-func-tests--library-completion () ;bug#43393 32(ert-deftest find-func-tests--library-completion () ;bug#43393
33 ;; FIXME: How can we make this work in batch (see also 33 ;; FIXME: How can we make this work in batch (see also
34 ;; `mule-cmds--test-universal-coding-system-argument')? 34 ;; `mule-cmds--test-universal-coding-system-argument')?
35 ;; (skip-unless (not noninteractive)) 35 ;; (skip-when noninteractive)
36 ;; Check that `partial-completion' works when completing library names. 36 ;; Check that `partial-completion' works when completing library names.
37 (should (equal "org/org" 37 (should (equal "org/org"
38 (ert-simulate-keys 38 (ert-simulate-keys
diff --git a/test/lisp/eshell/esh-proc-tests.el b/test/lisp/eshell/esh-proc-tests.el
index fa20efa71e1..712d3519dce 100644
--- a/test/lisp/eshell/esh-proc-tests.el
+++ b/test/lisp/eshell/esh-proc-tests.el
@@ -281,7 +281,7 @@ prompt. See bug#54136."
281 (executable-find "sleep"))) 281 (executable-find "sleep")))
282 ;; This test doesn't work on EMBA with AOT nativecomp, but works 282 ;; This test doesn't work on EMBA with AOT nativecomp, but works
283 ;; fine elsewhere. 283 ;; fine elsewhere.
284 (skip-unless (not (getenv "EMACS_EMBA_CI"))) 284 (skip-when (getenv "EMACS_EMBA_CI"))
285 (with-temp-eshell 285 (with-temp-eshell
286 (eshell-insert-command 286 (eshell-insert-command
287 (concat "sh -c 'while true; do echo y; sleep 1; done' | " 287 (concat "sh -c 'while true; do echo y; sleep 1; done' | "
diff --git a/test/lisp/filenotify-tests.el b/test/lisp/filenotify-tests.el
index 0873910ddf9..57099add08b 100644
--- a/test/lisp/filenotify-tests.el
+++ b/test/lisp/filenotify-tests.el
@@ -1583,7 +1583,7 @@ the file watch."
1583 :tags '(:expensive-test) 1583 :tags '(:expensive-test)
1584 (skip-unless (file-notify--test-local-enabled)) 1584 (skip-unless (file-notify--test-local-enabled))
1585 ;; This test does not work for kqueue (yet). 1585 ;; This test does not work for kqueue (yet).
1586 (skip-unless (not (string-equal (file-notify--test-library) "kqueue"))) 1586 (skip-when (string-equal (file-notify--test-library) "kqueue"))
1587 1587
1588 (setq file-notify--test-tmpfile (file-notify--test-make-temp-name) 1588 (setq file-notify--test-tmpfile (file-notify--test-make-temp-name)
1589 file-notify--test-tmpfile1 (file-notify--test-make-temp-name)) 1589 file-notify--test-tmpfile1 (file-notify--test-make-temp-name))
diff --git a/test/lisp/ibuffer-tests.el b/test/lisp/ibuffer-tests.el
index 83bfa1f68af..ec0ba85da39 100644
--- a/test/lisp/ibuffer-tests.el
+++ b/test/lisp/ibuffer-tests.el
@@ -34,7 +34,7 @@
34 34
35(ert-deftest ibuffer-0autoload () ; sort first 35(ert-deftest ibuffer-0autoload () ; sort first
36 "Tests to see whether ibuffer has been autoloaded" 36 "Tests to see whether ibuffer has been autoloaded"
37 (skip-unless (not (featurep 'ibuf-ext))) 37 (skip-when (featurep 'ibuf-ext))
38 (should 38 (should
39 (fboundp 'ibuffer-mark-unsaved-buffers)) 39 (fboundp 'ibuffer-mark-unsaved-buffers))
40 (should 40 (should
diff --git a/test/lisp/international/ucs-normalize-tests.el b/test/lisp/international/ucs-normalize-tests.el
index 97b8fa66cd3..bc7e743291d 100644
--- a/test/lisp/international/ucs-normalize-tests.el
+++ b/test/lisp/international/ucs-normalize-tests.el
@@ -255,8 +255,8 @@ Must be called with `ucs-normalize-tests--norm-buf' as current buffer."
255 255
256(ert-deftest ucs-normalize-part1 () 256(ert-deftest ucs-normalize-part1 ()
257 :tags '(:expensive-test) 257 :tags '(:expensive-test)
258 (skip-unless (not (or (getenv "EMACS_HYDRA_CI") 258 (skip-when (or (getenv "EMACS_HYDRA_CI")
259 (getenv "EMACS_EMBA_CI")))) ; SLOW ~ 1800s 259 (getenv "EMACS_EMBA_CI"))) ; SLOW ~ 1800s
260 ;; This takes a long time, so make sure we're compiled. 260 ;; This takes a long time, so make sure we're compiled.
261 (dolist (fun '(ucs-normalize-tests--part1-rule2 261 (dolist (fun '(ucs-normalize-tests--part1-rule2
262 ucs-normalize-tests--rule1-failing-for-partX 262 ucs-normalize-tests--rule1-failing-for-partX
diff --git a/test/lisp/net/network-stream-tests.el b/test/lisp/net/network-stream-tests.el
index 0fd9549c305..8b1ae398930 100644
--- a/test/lisp/net/network-stream-tests.el
+++ b/test/lisp/net/network-stream-tests.el
@@ -236,7 +236,7 @@
236 (while (and (eq (process-status proc) 'connect) 236 (while (and (eq (process-status proc) 'connect)
237 (< (setq times (1+ times)) 10)) 237 (< (setq times (1+ times)) 10))
238 (sit-for 0.1)) 238 (sit-for 0.1))
239 (skip-unless (not (eq (process-status proc) 'connect))) 239 (skip-when (eq (process-status proc) 'connect))
240 (with-current-buffer (process-buffer proc) 240 (with-current-buffer (process-buffer proc)
241 (process-send-string proc "echo foo") 241 (process-send-string proc "echo foo")
242 (sleep-for 0.1) 242 (sleep-for 0.1)
@@ -323,7 +323,7 @@
323 (while (and (eq (process-status proc) 'connect) 323 (while (and (eq (process-status proc) 'connect)
324 (< (setq times (1+ times)) 10)) 324 (< (setq times (1+ times)) 10))
325 (sit-for 0.1)) 325 (sit-for 0.1))
326 (skip-unless (not (eq (process-status proc) 'connect)))) 326 (skip-when (eq (process-status proc) 'connect)))
327 (if (process-live-p server) (delete-process server))) 327 (if (process-live-p server) (delete-process server)))
328 (setq status (gnutls-peer-status proc)) 328 (setq status (gnutls-peer-status proc))
329 (should (consp status)) 329 (should (consp status))
@@ -336,7 +336,7 @@
336(ert-deftest connect-to-tls-ipv6-nowait () 336(ert-deftest connect-to-tls-ipv6-nowait ()
337 (skip-unless (executable-find "gnutls-serv")) 337 (skip-unless (executable-find "gnutls-serv"))
338 (skip-unless (gnutls-available-p)) 338 (skip-unless (gnutls-available-p))
339 (skip-unless (not (eq system-type 'windows-nt))) 339 (skip-when (eq system-type 'windows-nt))
340 (skip-unless (featurep 'make-network-process '(:family ipv6))) 340 (skip-unless (featurep 'make-network-process '(:family ipv6)))
341 (let ((server (make-tls-server 44333)) 341 (let ((server (make-tls-server 44333))
342 (times 0) 342 (times 0)
@@ -368,7 +368,7 @@
368 (while (and (eq (process-status proc) 'connect) 368 (while (and (eq (process-status proc) 'connect)
369 (< (setq times (1+ times)) 10)) 369 (< (setq times (1+ times)) 10))
370 (sit-for 0.1)) 370 (sit-for 0.1))
371 (skip-unless (not (eq (process-status proc) 'connect)))) 371 (skip-when (eq (process-status proc) 'connect)))
372 (if (process-live-p server) (delete-process server))) 372 (if (process-live-p server) (delete-process server)))
373 (setq status (gnutls-peer-status proc)) 373 (setq status (gnutls-peer-status proc))
374 (should (consp status)) 374 (should (consp status))
@@ -403,7 +403,7 @@
403 (< (setq times (1+ times)) 10)) 403 (< (setq times (1+ times)) 10))
404 (sit-for 0.1)) 404 (sit-for 0.1))
405 (should proc) 405 (should proc)
406 (skip-unless (not (eq (process-status proc) 'connect)))) 406 (skip-when (eq (process-status proc) 'connect)))
407 (if (process-live-p server) (delete-process server))) 407 (if (process-live-p server) (delete-process server)))
408 (setq status (gnutls-peer-status proc)) 408 (setq status (gnutls-peer-status proc))
409 (should (consp status)) 409 (should (consp status))
@@ -446,7 +446,7 @@
446 (while (and (eq (process-status proc) 'connect) 446 (while (and (eq (process-status proc) 'connect)
447 (< (setq times (1+ times)) 10)) 447 (< (setq times (1+ times)) 10))
448 (sit-for 0.1)) 448 (sit-for 0.1))
449 (skip-unless (not (eq (process-status proc) 'connect)))) 449 (skip-when (eq (process-status proc) 'connect)))
450 (if (process-live-p server) (delete-process server))) 450 (if (process-live-p server) (delete-process server)))
451 (setq status (gnutls-peer-status proc)) 451 (setq status (gnutls-peer-status proc))
452 (should (consp status)) 452 (should (consp status))
@@ -484,7 +484,7 @@
484 (< (setq times (1+ times)) 10)) 484 (< (setq times (1+ times)) 10))
485 (sit-for 0.1)) 485 (sit-for 0.1))
486 (should proc) 486 (should proc)
487 (skip-unless (not (eq (process-status proc) 'connect)))) 487 (skip-when (eq (process-status proc) 'connect)))
488 (if (process-live-p server) (delete-process server))) 488 (if (process-live-p server) (delete-process server)))
489 (setq status (gnutls-peer-status proc)) 489 (setq status (gnutls-peer-status proc))
490 (should (consp status)) 490 (should (consp status))
@@ -523,7 +523,7 @@
523 (< (setq times (1+ times)) 10)) 523 (< (setq times (1+ times)) 10))
524 (sit-for 0.1)) 524 (sit-for 0.1))
525 (should proc) 525 (should proc)
526 (skip-unless (not (eq (process-status proc) 'connect)))) 526 (skip-when (eq (process-status proc) 'connect)))
527 (if (process-live-p server) (delete-process server))) 527 (if (process-live-p server) (delete-process server)))
528 (setq status (gnutls-peer-status proc)) 528 (setq status (gnutls-peer-status proc))
529 (should (consp status)) 529 (should (consp status))
@@ -673,7 +673,7 @@
673 (while (and (eq (process-status proc) 'connect) 673 (while (and (eq (process-status proc) 'connect)
674 (< (setq times (1+ times)) 10)) 674 (< (setq times (1+ times)) 10))
675 (sit-for 0.1)) 675 (sit-for 0.1))
676 (skip-unless (not (eq (process-status proc) 'connect)))) 676 (skip-when (eq (process-status proc) 'connect)))
677 (if (process-live-p server) (delete-process server))) 677 (if (process-live-p server) (delete-process server)))
678 (setq status (gnutls-peer-status proc)) 678 (setq status (gnutls-peer-status proc))
679 (should (consp status)) 679 (should (consp status))
@@ -712,7 +712,7 @@
712 (while (and (eq (process-status proc) 'connect) 712 (while (and (eq (process-status proc) 'connect)
713 (< (setq times (1+ times)) 10)) 713 (< (setq times (1+ times)) 10))
714 (sit-for 0.1)) 714 (sit-for 0.1))
715 (skip-unless (not (eq (process-status proc) 'connect)))) 715 (skip-when (eq (process-status proc) 'connect)))
716 (if (process-live-p server) (delete-process server))) 716 (if (process-live-p server) (delete-process server)))
717 (setq status (gnutls-peer-status proc)) 717 (setq status (gnutls-peer-status proc))
718 (should (consp status)) 718 (should (consp status))
diff --git a/test/lisp/progmodes/cperl-mode-tests.el b/test/lisp/progmodes/cperl-mode-tests.el
index 8f334245c64..87d8ffa2d8d 100644
--- a/test/lisp/progmodes/cperl-mode-tests.el
+++ b/test/lisp/progmodes/cperl-mode-tests.el
@@ -892,8 +892,8 @@ without a statement terminator on the same line does not loop
892forever. The test starts an asynchronous Emacs batch process 892forever. The test starts an asynchronous Emacs batch process
893under timeout control." 893under timeout control."
894 :tags '(:expensive-test) 894 :tags '(:expensive-test)
895 (skip-unless (not (getenv "EMACS_HYDRA_CI"))) ; FIXME times out 895 (skip-when (getenv "EMACS_HYDRA_CI")) ; FIXME times out
896 (skip-unless (not (< emacs-major-version 28))) ; times out in older Emacsen 896 (skip-when (< emacs-major-version 28)) ; times out in older Emacsen
897 (skip-unless (eq cperl-test-mode #'cperl-mode)) 897 (skip-unless (eq cperl-test-mode #'cperl-mode))
898 (let* ((emacs (concat invocation-directory invocation-name)) 898 (let* ((emacs (concat invocation-directory invocation-name))
899 (test-function 'cperl-test--run-bug-10483) 899 (test-function 'cperl-test--run-bug-10483)
@@ -1242,7 +1242,7 @@ however, must not happen when the keyword occurs in a variable
1242\"$else\" or \"$continue\"." 1242\"$else\" or \"$continue\"."
1243 (skip-unless (eq cperl-test-mode #'cperl-mode)) 1243 (skip-unless (eq cperl-test-mode #'cperl-mode))
1244 ;; `self-insert-command' takes a second argument only since Emacs 27 1244 ;; `self-insert-command' takes a second argument only since Emacs 27
1245 (skip-unless (not (< emacs-major-version 27))) 1245 (skip-when (< emacs-major-version 27))
1246 (with-temp-buffer 1246 (with-temp-buffer
1247 (setq cperl-electric-keywords t) 1247 (setq cperl-electric-keywords t)
1248 (cperl-mode) 1248 (cperl-mode)
diff --git a/test/lisp/progmodes/elisp-mode-tests.el b/test/lisp/progmodes/elisp-mode-tests.el
index 5b6ef88dceb..4fa869c773f 100644
--- a/test/lisp/progmodes/elisp-mode-tests.el
+++ b/test/lisp/progmodes/elisp-mode-tests.el
@@ -128,7 +128,7 @@
128 128
129(ert-deftest eval-last-sexp-print-format-sym-echo () 129(ert-deftest eval-last-sexp-print-format-sym-echo ()
130 ;; We can only check the echo area when running interactive. 130 ;; We can only check the echo area when running interactive.
131 (skip-unless (not noninteractive)) 131 (skip-when noninteractive)
132 (with-temp-buffer 132 (with-temp-buffer
133 (let ((current-prefix-arg nil)) 133 (let ((current-prefix-arg nil))
134 (erase-buffer) (insert "t") (message nil) 134 (erase-buffer) (insert "t") (message nil)
@@ -147,7 +147,7 @@
147 (should (equal (buffer-string) "?A65 (#o101, #x41, ?A)"))))) 147 (should (equal (buffer-string) "?A65 (#o101, #x41, ?A)")))))
148 148
149(ert-deftest eval-last-sexp-print-format-small-int-echo () 149(ert-deftest eval-last-sexp-print-format-small-int-echo ()
150 (skip-unless (not noninteractive)) 150 (skip-when noninteractive)
151 (with-temp-buffer 151 (with-temp-buffer
152 (let ((current-prefix-arg nil)) 152 (let ((current-prefix-arg nil))
153 (erase-buffer) (insert "?A") (message nil) 153 (erase-buffer) (insert "?A") (message nil)
@@ -171,7 +171,7 @@
171 (should (equal (buffer-string) "?B66 (#o102, #x42, ?B)")))))) 171 (should (equal (buffer-string) "?B66 (#o102, #x42, ?B)"))))))
172 172
173(ert-deftest eval-last-sexp-print-format-large-int-echo () 173(ert-deftest eval-last-sexp-print-format-large-int-echo ()
174 (skip-unless (not noninteractive)) 174 (skip-when noninteractive)
175 (with-temp-buffer 175 (with-temp-buffer
176 (let ((eval-expression-print-maximum-character ?A)) 176 (let ((eval-expression-print-maximum-character ?A))
177 (let ((current-prefix-arg nil)) 177 (let ((current-prefix-arg nil))
@@ -186,7 +186,7 @@
186;;; eval-defun 186;;; eval-defun
187 187
188(ert-deftest eval-defun-prints-edebug-when-instrumented () 188(ert-deftest eval-defun-prints-edebug-when-instrumented ()
189 (skip-unless (not noninteractive)) 189 (skip-when noninteractive)
190 (with-temp-buffer 190 (with-temp-buffer
191 (let ((current-prefix-arg '(4))) 191 (let ((current-prefix-arg '(4)))
192 (erase-buffer) (insert "(defun foo ())") (message nil) 192 (erase-buffer) (insert "(defun foo ())") (message nil)
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el
index 9f935f2748c..a44a11896f0 100644
--- a/test/lisp/progmodes/python-tests.el
+++ b/test/lisp/progmodes/python-tests.el
@@ -4918,7 +4918,7 @@ import abc
4918 ;; Skip the test on macOS, since the standard Python installation uses 4918 ;; Skip the test on macOS, since the standard Python installation uses
4919 ;; libedit rather than readline which confuses the running of an inferior 4919 ;; libedit rather than readline which confuses the running of an inferior
4920 ;; interpreter in this case (see bug#59477 and bug#25753). 4920 ;; interpreter in this case (see bug#59477 and bug#25753).
4921 (skip-unless (not (eq system-type 'darwin))) 4921 (skip-when (eq system-type 'darwin))
4922 (trace-function 'python-shell-output-filter) 4922 (trace-function 'python-shell-output-filter)
4923 (python-tests-with-temp-buffer-with-shell 4923 (python-tests-with-temp-buffer-with-shell
4924 " 4924 "
diff --git a/test/lisp/shadowfile-tests.el b/test/lisp/shadowfile-tests.el
index 5edba039032..b1c06ad2d05 100644
--- a/test/lisp/shadowfile-tests.el
+++ b/test/lisp/shadowfile-tests.el
@@ -101,7 +101,7 @@ Per definition, all files are identical on the different hosts of
101a cluster (or site). This is not tested here; it must be 101a cluster (or site). This is not tested here; it must be
102guaranteed by the originator of a cluster definition." 102guaranteed by the originator of a cluster definition."
103 :tags '(:expensive-test) 103 :tags '(:expensive-test)
104 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 104 (skip-when (memq system-type '(windows-nt ms-dos)))
105 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 105 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
106 106
107 (let ((text-quoting-style 'grave) ;; We inspect the *Messages* buffer! 107 (let ((text-quoting-style 'grave) ;; We inspect the *Messages* buffer!
@@ -219,7 +219,7 @@ guaranteed by the originator of a cluster definition."
219Per definition, all files are identical on the different hosts of 219Per definition, all files are identical on the different hosts of
220a cluster (or site). This is not tested here; it must be 220a cluster (or site). This is not tested here; it must be
221guaranteed by the originator of a cluster definition." 221guaranteed by the originator of a cluster definition."
222 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 222 (skip-when (memq system-type '(windows-nt ms-dos)))
223 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 223 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
224 224
225 (let ((shadow-info-file shadow-test-info-file) 225 (let ((shadow-info-file shadow-test-info-file)
@@ -320,7 +320,7 @@ guaranteed by the originator of a cluster definition."
320 320
321(ert-deftest shadow-test02-files () 321(ert-deftest shadow-test02-files ()
322 "Check file manipulation functions." 322 "Check file manipulation functions."
323 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 323 (skip-when (memq system-type '(windows-nt ms-dos)))
324 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 324 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
325 325
326 (let ((shadow-info-file shadow-test-info-file) 326 (let ((shadow-info-file shadow-test-info-file)
@@ -391,7 +391,7 @@ guaranteed by the originator of a cluster definition."
391 391
392(ert-deftest shadow-test03-expand-cluster-in-file-name () 392(ert-deftest shadow-test03-expand-cluster-in-file-name ()
393 "Check canonical file name of a cluster or site." 393 "Check canonical file name of a cluster or site."
394 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 394 (skip-when (memq system-type '(windows-nt ms-dos)))
395 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 395 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
396 396
397 (let ((shadow-info-file shadow-test-info-file) 397 (let ((shadow-info-file shadow-test-info-file)
@@ -456,7 +456,7 @@ guaranteed by the originator of a cluster definition."
456 456
457(ert-deftest shadow-test04-contract-file-name () 457(ert-deftest shadow-test04-contract-file-name ()
458 "Check canonical file name of a cluster or site." 458 "Check canonical file name of a cluster or site."
459 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 459 (skip-when (memq system-type '(windows-nt ms-dos)))
460 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 460 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
461 461
462 (let ((shadow-info-file shadow-test-info-file) 462 (let ((shadow-info-file shadow-test-info-file)
@@ -511,7 +511,7 @@ guaranteed by the originator of a cluster definition."
511 511
512(ert-deftest shadow-test05-file-match () 512(ert-deftest shadow-test05-file-match ()
513 "Check `shadow-same-site' and `shadow-file-match'." 513 "Check `shadow-same-site' and `shadow-file-match'."
514 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 514 (skip-when (memq system-type '(windows-nt ms-dos)))
515 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 515 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
516 516
517 (let ((shadow-info-file shadow-test-info-file) 517 (let ((shadow-info-file shadow-test-info-file)
@@ -563,7 +563,7 @@ guaranteed by the originator of a cluster definition."
563 563
564(ert-deftest shadow-test06-literal-groups () 564(ert-deftest shadow-test06-literal-groups ()
565 "Check literal group definitions." 565 "Check literal group definitions."
566 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 566 (skip-when (memq system-type '(windows-nt ms-dos)))
567 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 567 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
568 568
569 (let ((shadow-info-file shadow-test-info-file) 569 (let ((shadow-info-file shadow-test-info-file)
@@ -648,7 +648,7 @@ guaranteed by the originator of a cluster definition."
648 648
649(ert-deftest shadow-test07-regexp-groups () 649(ert-deftest shadow-test07-regexp-groups ()
650 "Check regexp group definitions." 650 "Check regexp group definitions."
651 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 651 (skip-when (memq system-type '(windows-nt ms-dos)))
652 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 652 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
653 653
654 (let ((shadow-info-file shadow-test-info-file) 654 (let ((shadow-info-file shadow-test-info-file)
@@ -710,7 +710,7 @@ guaranteed by the originator of a cluster definition."
710 710
711(ert-deftest shadow-test08-shadow-todo () 711(ert-deftest shadow-test08-shadow-todo ()
712 "Check that needed shadows are added to todo." 712 "Check that needed shadows are added to todo."
713 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 713 (skip-when (memq system-type '(windows-nt ms-dos)))
714 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 714 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
715 (skip-unless (file-writable-p ert-remote-temporary-file-directory)) 715 (skip-unless (file-writable-p ert-remote-temporary-file-directory))
716 716
@@ -855,7 +855,7 @@ guaranteed by the originator of a cluster definition."
855(ert-deftest shadow-test09-shadow-copy-files () 855(ert-deftest shadow-test09-shadow-copy-files ()
856 "Check that needed shadow files are copied." 856 "Check that needed shadow files are copied."
857 :tags '(:expensive-test) 857 :tags '(:expensive-test)
858 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 858 (skip-when (memq system-type '(windows-nt ms-dos)))
859 (skip-unless (file-remote-p ert-remote-temporary-file-directory)) 859 (skip-unless (file-remote-p ert-remote-temporary-file-directory))
860 (skip-unless (file-writable-p ert-remote-temporary-file-directory)) 860 (skip-unless (file-writable-p ert-remote-temporary-file-directory))
861 861
diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el
index 7dabb735522..b632c908443 100644
--- a/test/lisp/simple-tests.el
+++ b/test/lisp/simple-tests.el
@@ -742,7 +742,7 @@ See Bug#21722."
742 742
743(ert-deftest eval-expression-print-format-sym-echo () 743(ert-deftest eval-expression-print-format-sym-echo ()
744 ;; We can only check the echo area when running interactive. 744 ;; We can only check the echo area when running interactive.
745 (skip-unless (not noninteractive)) 745 (skip-when noninteractive)
746 (with-temp-buffer 746 (with-temp-buffer
747 (cl-letf (((symbol-function 'read--expression) (lambda (&rest _) t))) 747 (cl-letf (((symbol-function 'read--expression) (lambda (&rest _) t)))
748 (let ((current-prefix-arg nil)) 748 (let ((current-prefix-arg nil))
@@ -763,7 +763,7 @@ See Bug#21722."
763 (should (equal (buffer-string) "65 (#o101, #x41, ?A)")))))) 763 (should (equal (buffer-string) "65 (#o101, #x41, ?A)"))))))
764 764
765(ert-deftest eval-expression-print-format-small-int-echo () 765(ert-deftest eval-expression-print-format-small-int-echo ()
766 (skip-unless (not noninteractive)) 766 (skip-when noninteractive)
767 (with-temp-buffer 767 (with-temp-buffer
768 (cl-letf (((symbol-function 'read--expression) (lambda (&rest _) ?A))) 768 (cl-letf (((symbol-function 'read--expression) (lambda (&rest _) ?A)))
769 (let ((current-prefix-arg nil)) 769 (let ((current-prefix-arg nil))
@@ -789,7 +789,7 @@ See Bug#21722."
789 (should (equal (buffer-string) "66 (#o102, #x42, ?B)")))))) 789 (should (equal (buffer-string) "66 (#o102, #x42, ?B)"))))))
790 790
791(ert-deftest eval-expression-print-format-large-int-echo () 791(ert-deftest eval-expression-print-format-large-int-echo ()
792 (skip-unless (not noninteractive)) 792 (skip-when noninteractive)
793 (with-temp-buffer 793 (with-temp-buffer
794 (cl-letf (((symbol-function 'read--expression) (lambda (&rest _) ?B)) 794 (cl-letf (((symbol-function 'read--expression) (lambda (&rest _) ?B))
795 (eval-expression-print-maximum-character ?A)) 795 (eval-expression-print-maximum-character ?A))
diff --git a/test/lisp/term-tests.el b/test/lisp/term-tests.el
index ee2bb6574ae..911d03d5628 100644
--- a/test/lisp/term-tests.el
+++ b/test/lisp/term-tests.el
@@ -110,7 +110,7 @@
110 (buffer-substring (point-min) (point-max)))))) 110 (buffer-substring (point-min) (point-max))))))
111 111
112(ert-deftest term-simple-lines () 112(ert-deftest term-simple-lines ()
113 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 113 (skip-when (memq system-type '(windows-nt ms-dos)))
114 (let ((str "\ 114 (let ((str "\
115first line\r 115first line\r
116next line\r\n")) 116next line\r\n"))
@@ -118,14 +118,14 @@ next line\r\n"))
118 (string-replace "\r" "" str))))) 118 (string-replace "\r" "" str)))))
119 119
120(ert-deftest term-carriage-return () 120(ert-deftest term-carriage-return ()
121 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 121 (skip-when (memq system-type '(windows-nt ms-dos)))
122 (let ((str "\ 122 (let ((str "\
123first line\r_next line\r\n")) 123first line\r_next line\r\n"))
124 (should (equal (term-test-screen-from-input 40 12 str) 124 (should (equal (term-test-screen-from-input 40 12 str)
125 "_next line\n")))) 125 "_next line\n"))))
126 126
127(ert-deftest term-line-wrap () 127(ert-deftest term-line-wrap ()
128 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 128 (skip-when (memq system-type '(windows-nt ms-dos)))
129 (should (string-match-p 129 (should (string-match-p
130 ;; Don't be strict about trailing whitespace. 130 ;; Don't be strict about trailing whitespace.
131 "\\`a\\{40\\}\na\\{20\\} *\\'" 131 "\\`a\\{40\\}\na\\{20\\} *\\'"
@@ -137,7 +137,7 @@ first line\r_next line\r\n"))
137 (list str str)))))) 137 (list str str))))))
138 138
139(ert-deftest term-colors () 139(ert-deftest term-colors ()
140 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 140 (skip-when (memq system-type '(windows-nt ms-dos)))
141 (pcase-dolist (`(,str ,expected) ansi-test-strings) 141 (pcase-dolist (`(,str ,expected) ansi-test-strings)
142 (let ((result (term-test-screen-from-input 40 12 str))) 142 (let ((result (term-test-screen-from-input 40 12 str)))
143 (should (equal result expected)) 143 (should (equal result expected))
@@ -145,7 +145,7 @@ first line\r_next line\r\n"))
145 (text-properties-at 0 expected)))))) 145 (text-properties-at 0 expected))))))
146 146
147(ert-deftest term-colors-bold-is-bright () 147(ert-deftest term-colors-bold-is-bright ()
148 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 148 (skip-when (memq system-type '(windows-nt ms-dos)))
149 (let ((ansi-color-bold-is-bright t)) 149 (let ((ansi-color-bold-is-bright t))
150 (pcase-dolist (`(,str ,expected ,bright-expected) ansi-test-strings) 150 (pcase-dolist (`(,str ,expected ,bright-expected) ansi-test-strings)
151 (let ((expected (or bright-expected expected)) 151 (let ((expected (or bright-expected expected))
@@ -155,7 +155,7 @@ first line\r_next line\r\n"))
155 (text-properties-at 0 expected))))))) 155 (text-properties-at 0 expected)))))))
156 156
157(ert-deftest term-cursor-movement () 157(ert-deftest term-cursor-movement ()
158 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 158 (skip-when (memq system-type '(windows-nt ms-dos)))
159 ;; Absolute positioning. 159 ;; Absolute positioning.
160 (should (equal "ab\ncd" 160 (should (equal "ab\ncd"
161 (term-test-screen-from-input 161 (term-test-screen-from-input
@@ -186,7 +186,7 @@ first line\r_next line\r\n"))
186 "\e[D\e[Da"))))) 186 "\e[D\e[Da")))))
187 187
188(ert-deftest term-scrolling-region () 188(ert-deftest term-scrolling-region ()
189 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 189 (skip-when (memq system-type '(windows-nt ms-dos)))
190 (should (equal "\ 190 (should (equal "\
191line3 191line3
192line4 192line4
@@ -338,7 +338,7 @@ line6\r
338line7"))))) 338line7")))))
339 339
340(ert-deftest term-set-directory () 340(ert-deftest term-set-directory ()
341 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 341 (skip-when (memq system-type '(windows-nt ms-dos)))
342 (let ((term-ansi-at-user (user-real-login-name))) 342 (let ((term-ansi-at-user (user-real-login-name)))
343 (should (equal (term-test-screen-from-input 343 (should (equal (term-test-screen-from-input
344 40 12 "\eAnSiTc /foo/\n" 'default-directory) 344 40 12 "\eAnSiTc /foo/\n" 'default-directory)
@@ -354,7 +354,7 @@ A real-life example is the default zsh prompt which writes spaces
354to the end of line (triggering line-wrapping state), and then 354to the end of line (triggering line-wrapping state), and then
355sends a carriage return followed by another space to overwrite 355sends a carriage return followed by another space to overwrite
356the first character of the line." 356the first character of the line."
357 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 357 (skip-when (memq system-type '(windows-nt ms-dos)))
358 (let* ((width 10) 358 (let* ((width 10)
359 (strs (list "x" (make-string (1- width) ?_) 359 (strs (list "x" (make-string (1- width) ?_)
360 "\r_"))) 360 "\r_")))
@@ -364,7 +364,7 @@ the first character of the line."
364(ert-deftest term-to-margin () 364(ert-deftest term-to-margin ()
365 "Test cursor movement at the scroll margin. 365 "Test cursor movement at the scroll margin.
366This is a reduced example from GNU nano's initial screen." 366This is a reduced example from GNU nano's initial screen."
367 (skip-unless (not (memq system-type '(windows-nt ms-dos)))) 367 (skip-when (memq system-type '(windows-nt ms-dos)))
368 (let* ((width 10) 368 (let* ((width 10)
369 (x (make-string width ?x)) 369 (x (make-string width ?x))
370 (y (make-string width ?y))) 370 (y (make-string width ?y)))
diff --git a/test/lisp/thread-tests.el b/test/lisp/thread-tests.el
index 4ba7b99719c..5d684a96a18 100644
--- a/test/lisp/thread-tests.el
+++ b/test/lisp/thread-tests.el
@@ -88,7 +88,7 @@
88 88
89(ert-deftest thread-tests-list-threads-error-when-not-configured () 89(ert-deftest thread-tests-list-threads-error-when-not-configured ()
90 "Signal an error running `list-threads' if threads are not configured." 90 "Signal an error running `list-threads' if threads are not configured."
91 (skip-unless (not (featurep 'threads))) 91 (skip-when (featurep 'threads))
92 (should-error (list-threads))) 92 (should-error (list-threads)))
93 93
94(provide 'thread-tests) 94(provide 'thread-tests)
diff --git a/test/lisp/vc/vc-tests.el b/test/lisp/vc/vc-tests.el
index 0a26e25e32a..f40cee8cc5b 100644
--- a/test/lisp/vc/vc-tests.el
+++ b/test/lisp/vc/vc-tests.el
@@ -781,7 +781,7 @@ This checks also `vc-backend' and `vc-responsible-backend'."
781 ;; CVS calls vc-delete-file, which insists on prompting 781 ;; CVS calls vc-delete-file, which insists on prompting
782 ;; "Really want to delete ...?", and `vc-mtn.el' does not implement 782 ;; "Really want to delete ...?", and `vc-mtn.el' does not implement
783 ;; `delete-file' at all. 783 ;; `delete-file' at all.
784 (skip-unless (not (memq ',backend '(CVS Mtn)))) 784 (skip-when (memq ',backend '(CVS Mtn)))
785 (vc-test--rename-file ',backend)) 785 (vc-test--rename-file ',backend))
786 786
787 (ert-deftest 787 (ert-deftest
@@ -796,7 +796,7 @@ This checks also `vc-backend' and `vc-responsible-backend'."
796 (format "vc-test-%s01-register" backend-string)))))) 796 (format "vc-test-%s01-register" backend-string))))))
797 ;; `vc-mtn.el' gives me: 797 ;; `vc-mtn.el' gives me:
798 ;; "Failed (status 1): mtn commit -m Testing vc-version-diff\n\n foo" 798 ;; "Failed (status 1): mtn commit -m Testing vc-version-diff\n\n foo"
799 (skip-unless (not (memq ',backend '(Mtn)))) 799 (skip-when (memq ',backend '(Mtn)))
800 (vc-test--version-diff ',backend)) 800 (vc-test--version-diff ',backend))
801 )))) 801 ))))
802 802
diff --git a/test/manual/scroll-tests.el b/test/manual/scroll-tests.el
index c2a4ef17bff..b2cfeabfe64 100644
--- a/test/manual/scroll-tests.el
+++ b/test/manual/scroll-tests.el
@@ -80,25 +80,25 @@
80 ,@body))) 80 ,@body)))
81 81
82(ert-deftest scroll-tests-scroll-margin-0 () 82(ert-deftest scroll-tests-scroll-margin-0 ()
83 (skip-unless (not noninteractive)) 83 (skip-when noninteractive)
84 (scroll-tests-with-buffer-window 84 (scroll-tests-with-buffer-window
85 (scroll-tests-up-and-down 0))) 85 (scroll-tests-up-and-down 0)))
86 86
87(ert-deftest scroll-tests-scroll-margin-negative () 87(ert-deftest scroll-tests-scroll-margin-negative ()
88 "A negative `scroll-margin' should be the same as 0." 88 "A negative `scroll-margin' should be the same as 0."
89 (skip-unless (not noninteractive)) 89 (skip-when noninteractive)
90 (scroll-tests-with-buffer-window 90 (scroll-tests-with-buffer-window
91 (scroll-tests-up-and-down -10 0))) 91 (scroll-tests-up-and-down -10 0)))
92 92
93(ert-deftest scroll-tests-scroll-margin-max () 93(ert-deftest scroll-tests-scroll-margin-max ()
94 (skip-unless (not noninteractive)) 94 (skip-when noninteractive)
95 (scroll-tests-with-buffer-window 95 (scroll-tests-with-buffer-window
96 (let ((max-margin (/ (window-text-height) 4))) 96 (let ((max-margin (/ (window-text-height) 4)))
97 (scroll-tests-up-and-down max-margin)))) 97 (scroll-tests-up-and-down max-margin))))
98 98
99(ert-deftest scroll-tests-scroll-margin-over-max () 99(ert-deftest scroll-tests-scroll-margin-over-max ()
100 "A `scroll-margin' more than max should be the same as max." 100 "A `scroll-margin' more than max should be the same as max."
101 (skip-unless (not noninteractive)) 101 (skip-when noninteractive)
102 (scroll-tests-with-buffer-window 7 102 (scroll-tests-with-buffer-window 7
103 (let ((max-margin (/ (window-text-height) 4))) 103 (let ((max-margin (/ (window-text-height) 4)))
104 (scroll-tests-up-and-down (+ max-margin 1) max-margin) 104 (scroll-tests-up-and-down (+ max-margin 1) max-margin)
@@ -155,7 +155,7 @@ middle of the window."
155 (should (scroll-tests--point-in-middle-of-window-p))))) 155 (should (scroll-tests--point-in-middle-of-window-p)))))
156 156
157(ert-deftest scroll-tests-scroll-margin-whole-window () 157(ert-deftest scroll-tests-scroll-margin-whole-window ()
158 (skip-unless (not noninteractive)) 158 (skip-when noninteractive)
159 (scroll-tests--scroll-margin-whole-window)) 159 (scroll-tests--scroll-margin-whole-window))
160 160
161(ert-deftest scroll-tests-scroll-margin-whole-window-line-spacing () 161(ert-deftest scroll-tests-scroll-margin-whole-window-line-spacing ()
diff --git a/test/misc/test-custom-libs.el b/test/misc/test-custom-libs.el
index eb565de8eee..d255a87eeaf 100644
--- a/test/misc/test-custom-libs.el
+++ b/test/misc/test-custom-libs.el
@@ -39,7 +39,7 @@
39 :tags '(:expensive-test) 39 :tags '(:expensive-test)
40 :expected-result :failed ; FIXME: See above. 40 :expected-result :failed ; FIXME: See above.
41 ;; This test is very slow, and IMO not worth the time it takes. 41 ;; This test is very slow, and IMO not worth the time it takes.
42 (skip-unless (not (getenv "EMACS_HYDRA_CI"))) 42 (skip-when (getenv "EMACS_HYDRA_CI"))
43 (skip-unless (file-readable-p custom-test-admin-cus-test)) 43 (skip-unless (file-readable-p custom-test-admin-cus-test))
44 (load custom-test-admin-cus-test) 44 (load custom-test-admin-cus-test)
45 (cus-test-libs t) 45 (cus-test-libs t)
diff --git a/test/src/emacs-module-tests.el b/test/src/emacs-module-tests.el
index ac88011b543..59af5d9a4a8 100644
--- a/test/src/emacs-module-tests.el
+++ b/test/src/emacs-module-tests.el
@@ -457,7 +457,7 @@ See Bug#36226."
457 457
458(ert-deftest module/async-pipe () 458(ert-deftest module/async-pipe ()
459 "Check that writing data from another thread works." 459 "Check that writing data from another thread works."
460 (skip-unless (not (eq system-type 'windows-nt))) ; FIXME! 460 (skip-when (eq system-type 'windows-nt)) ; FIXME!
461 (with-temp-buffer 461 (with-temp-buffer
462 (let ((process (make-pipe-process :name "module/async-pipe" 462 (let ((process (make-pipe-process :name "module/async-pipe"
463 :buffer (current-buffer) 463 :buffer (current-buffer)
diff --git a/test/src/fileio-tests.el b/test/src/fileio-tests.el
index 50642420ce9..62a9be546f9 100644
--- a/test/src/fileio-tests.el
+++ b/test/src/fileio-tests.el
@@ -50,7 +50,7 @@ Also check that an encoding error can appear in a symlink."
50 ;; Some Windows versions don't support symlinks, and those which do 50 ;; Some Windows versions don't support symlinks, and those which do
51 ;; will pop up UAC elevation prompts, so we disable this test on 51 ;; will pop up UAC elevation prompts, so we disable this test on
52 ;; MS-Windows. 52 ;; MS-Windows.
53 (skip-unless (not (eq system-type 'windows-nt))) 53 (skip-when (eq system-type 'windows-nt))
54 (should (equal nil (fileio-tests--symlink-failure)))) 54 (should (equal nil (fileio-tests--symlink-failure))))
55 55
56(ert-deftest fileio-tests--directory-file-name () 56(ert-deftest fileio-tests--directory-file-name ()
diff --git a/test/src/filelock-tests.el b/test/src/filelock-tests.el
index c5e77f70bb2..f4376b2a5b0 100644
--- a/test/src/filelock-tests.el
+++ b/test/src/filelock-tests.el
@@ -109,7 +109,7 @@ the case)."
109 109
110(ert-deftest filelock-tests-lock-spoiled () 110(ert-deftest filelock-tests-lock-spoiled ()
111 "Check `lock-buffer'." 111 "Check `lock-buffer'."
112 (skip-unless (not (eq system-type 'ms-dos))) ; no filelock support 112 (skip-when (eq system-type 'ms-dos)) ; no filelock support
113 (filelock-tests--fixture 113 (filelock-tests--fixture
114 (filelock-tests--spoil-lock-file buffer-file-truename) 114 (filelock-tests--spoil-lock-file buffer-file-truename)
115 ;; FIXME: errors when locking a file are ignored; should they be? 115 ;; FIXME: errors when locking a file are ignored; should they be?
@@ -119,7 +119,7 @@ the case)."
119 119
120(ert-deftest filelock-tests-file-locked-p-spoiled () 120(ert-deftest filelock-tests-file-locked-p-spoiled ()
121 "Check that `file-locked-p' fails if the lockfile is \"spoiled\"." 121 "Check that `file-locked-p' fails if the lockfile is \"spoiled\"."
122 (skip-unless (not (eq system-type 'ms-dos))) ; no filelock support 122 (skip-when (eq system-type 'ms-dos)) ; no filelock support
123 (filelock-tests--fixture 123 (filelock-tests--fixture
124 (filelock-tests--spoil-lock-file buffer-file-truename) 124 (filelock-tests--spoil-lock-file buffer-file-truename)
125 (let ((err (should-error (file-locked-p (buffer-file-name))))) 125 (let ((err (should-error (file-locked-p (buffer-file-name)))))
@@ -130,7 +130,7 @@ the case)."
130 130
131(ert-deftest filelock-tests-unlock-spoiled () 131(ert-deftest filelock-tests-unlock-spoiled ()
132 "Check that `unlock-buffer' fails if the lockfile is \"spoiled\"." 132 "Check that `unlock-buffer' fails if the lockfile is \"spoiled\"."
133 (skip-unless (not (eq system-type 'ms-dos))) ; no filelock support 133 (skip-when (eq system-type 'ms-dos)) ; no filelock support
134 (filelock-tests--fixture 134 (filelock-tests--fixture
135 ;; Set the buffer modified with file locking temporarily disabled. 135 ;; Set the buffer modified with file locking temporarily disabled.
136 (let ((create-lockfiles nil)) 136 (let ((create-lockfiles nil))
@@ -150,7 +150,7 @@ the case)."
150 150
151(ert-deftest filelock-tests-kill-buffer-spoiled () 151(ert-deftest filelock-tests-kill-buffer-spoiled ()
152 "Check that `kill-buffer' fails if a lockfile is \"spoiled\"." 152 "Check that `kill-buffer' fails if a lockfile is \"spoiled\"."
153 (skip-unless (not (eq system-type 'ms-dos))) ; no filelock support 153 (skip-when (eq system-type 'ms-dos)) ; no filelock support
154 (filelock-tests--fixture 154 (filelock-tests--fixture
155 ;; Set the buffer modified with file locking temporarily disabled. 155 ;; Set the buffer modified with file locking temporarily disabled.
156 (let ((create-lockfiles nil)) 156 (let ((create-lockfiles nil))
@@ -176,7 +176,7 @@ the case)."
176 176
177(ert-deftest filelock-tests-detect-external-change () 177(ert-deftest filelock-tests-detect-external-change ()
178 "Check that an external file modification is reported." 178 "Check that an external file modification is reported."
179 (skip-unless (not (eq system-type 'ms-dos))) ; no filelock support 179 (skip-when (eq system-type 'ms-dos)) ; no filelock support
180 (skip-unless (executable-find "touch")) 180 (skip-unless (executable-find "touch"))
181 (skip-unless (executable-find "echo")) 181 (skip-unless (executable-find "echo"))
182 (dolist (cl '(t nil)) 182 (dolist (cl '(t nil))
diff --git a/test/src/image-tests.el b/test/src/image-tests.el
index 317f4d3aab6..3eec2bb4c60 100644
--- a/test/src/image-tests.el
+++ b/test/src/image-tests.el
@@ -44,15 +44,15 @@
44 (xpm . ,(find-image '((:file "splash.xpm" :type xpm)))))) 44 (xpm . ,(find-image '((:file "splash.xpm" :type xpm))))))
45 45
46(ert-deftest image-tests-image-size/error-on-nongraphical-display () 46(ert-deftest image-tests-image-size/error-on-nongraphical-display ()
47 (skip-unless (not (display-images-p))) 47 (skip-when (display-images-p))
48 (should-error (image-size 'invalid-spec))) 48 (should-error (image-size 'invalid-spec)))
49 49
50(ert-deftest image-tests-image-mask-p/error-on-nongraphical-display () 50(ert-deftest image-tests-image-mask-p/error-on-nongraphical-display ()
51 (skip-unless (not (display-images-p))) 51 (skip-when (display-images-p))
52 (should-error (image-mask-p (cdr (assq 'xpm image-tests--images))))) 52 (should-error (image-mask-p (cdr (assq 'xpm image-tests--images)))))
53 53
54(ert-deftest image-tests-image-metadata/error-on-nongraphical-display () 54(ert-deftest image-tests-image-metadata/error-on-nongraphical-display ()
55 (skip-unless (not (display-images-p))) 55 (skip-when (display-images-p))
56 (should-error (image-metadata (cdr (assq 'xpm image-tests--images))))) 56 (should-error (image-metadata (cdr (assq 'xpm image-tests--images)))))
57 57
58(ert-deftest image-tests-imagemagick-types () 58(ert-deftest image-tests-imagemagick-types ()
diff --git a/test/src/process-tests.el b/test/src/process-tests.el
index e17e1c0d833..711a27f1cfb 100644
--- a/test/src/process-tests.el
+++ b/test/src/process-tests.el
@@ -231,7 +231,7 @@ process to complete."
231 (with-timeout (60 (ert-fail "Test timed out")) 231 (with-timeout (60 (ert-fail "Test timed out"))
232 ;; Frequent random (?) failures on hydra.nixos.org, with no process output. 232 ;; Frequent random (?) failures on hydra.nixos.org, with no process output.
233 ;; Maybe this test should be tagged unstable? See bug#31214. 233 ;; Maybe this test should be tagged unstable? See bug#31214.
234 (skip-unless (not (getenv "EMACS_HYDRA_CI"))) 234 (skip-when (getenv "EMACS_HYDRA_CI"))
235 (with-temp-buffer 235 (with-temp-buffer
236 (let ((process (make-process 236 (let ((process (make-process
237 :name "mix-stderr" 237 :name "mix-stderr"
@@ -723,7 +723,7 @@ FD_SETSIZE file descriptors (Bug#24325)."
723 (skip-unless (featurep 'make-network-process '(:server t))) 723 (skip-unless (featurep 'make-network-process '(:server t)))
724 (skip-unless (featurep 'make-network-process '(:family local))) 724 (skip-unless (featurep 'make-network-process '(:family local)))
725 ;; Avoid hang due to connect/accept handshake on Cygwin (bug#49496). 725 ;; Avoid hang due to connect/accept handshake on Cygwin (bug#49496).
726 (skip-unless (not (eq system-type 'cygwin))) 726 (skip-when (eq system-type 'cygwin))
727 (with-timeout (60 (ert-fail "Test timed out")) 727 (with-timeout (60 (ert-fail "Test timed out"))
728 (ert-with-temp-directory directory 728 (ert-with-temp-directory directory
729 (process-tests--with-processes processes 729 (process-tests--with-processes processes
@@ -763,7 +763,7 @@ FD_SETSIZE file descriptors (Bug#24325)."
763 "Check that Emacs doesn't crash when trying to use more than 763 "Check that Emacs doesn't crash when trying to use more than
764FD_SETSIZE file descriptors (Bug#24325)." 764FD_SETSIZE file descriptors (Bug#24325)."
765 ;; This test cannot be run if PTYs aren't supported. 765 ;; This test cannot be run if PTYs aren't supported.
766 (skip-unless (not (eq system-type 'windows-nt))) 766 (skip-when (eq system-type 'windows-nt))
767 (with-timeout (60 (ert-fail "Test timed out")) 767 (with-timeout (60 (ert-fail "Test timed out"))
768 (process-tests--with-processes processes 768 (process-tests--with-processes processes
769 ;; In order to use `make-serial-process', we need to create some 769 ;; In order to use `make-serial-process', we need to create some