diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/emacs-module-tests.el | 2 | ||||
| -rw-r--r-- | test/src/fileio-tests.el | 2 | ||||
| -rw-r--r-- | test/src/filelock-tests.el | 10 | ||||
| -rw-r--r-- | test/src/image-tests.el | 6 | ||||
| -rw-r--r-- | test/src/process-tests.el | 6 |
5 files changed, 13 insertions, 13 deletions
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 |
| 764 | FD_SETSIZE file descriptors (Bug#24325)." | 764 | FD_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 |