summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2023-03-25 16:37:51 -0400
committerKen Brown <kbrown@cornell.edu>2023-03-26 10:04:59 -0400
commit45b16bfb496025d9f21f7cdccb6a25a0be83a26f (patch)
tree2d9c24761e176d16fab3dfcd16b60918aebe04a7 /test/lisp/emacs-lisp
parent8b4a494d8d4413ae6d566f6478f84e319aeaacdd (diff)
downloademacs-45b16bfb496025d9f21f7cdccb6a25a0be83a26f.tar.gz
emacs-45b16bfb496025d9f21f7cdccb6a25a0be83a26f.tar.bz2
emacs-45b16bfb496025d9f21f7cdccb6a25a0be83a26f.zip
Skip failing tests on Cygwin with native compilation (bug#62450)
* test/Makefile.in (TEST_NATIVE_COMP): New variable, used to determine whether to run tests tagged with :nativecomp. Set it to "no" on Cygwin and to $(HAVE_NATIVE_COMP) otherwise. * test/lisp/emacs-lisp/benchmark-tests.el (benchmark-tests): Skip on Cygwin with native-compilation.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r--test/lisp/emacs-lisp/benchmark-tests.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/benchmark-tests.el b/test/lisp/emacs-lisp/benchmark-tests.el
index 31357f24a0d..99b5b142c37 100644
--- a/test/lisp/emacs-lisp/benchmark-tests.el
+++ b/test/lisp/emacs-lisp/benchmark-tests.el
@@ -23,6 +23,10 @@
(require 'ert)
(ert-deftest benchmark-tests ()
+ ;; Avoid fork failures on Cygwin. See bug#62450 and etc/PROBLEMS
+ ;; ("Fork failures in a build with native compilation").
+ (skip-unless (not (and (eq system-type 'cygwin)
+ (featurep 'native-compile))))
(let (str t-long t-short m)
(should (consp (benchmark-run nil (setq m (1+ 0)))))
(should (consp (benchmark-run 1 (setq m (1+ 0)))))