aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-07-09 03:25:13 -0700
committerGlenn Morris2019-07-09 03:27:26 -0700
commit95dce77c5ecb46cff62c2bc45c2a239872b5f38c (patch)
tree748123cf23be0d4678a5751b8ddb959c01b873e3
parentfb5d70c6fc547f75c2971d3d91da63ecec245fd1 (diff)
downloademacs-95dce77c5ecb46cff62c2bc45c2a239872b5f38c.tar.gz
emacs-95dce77c5ecb46cff62c2bc45c2a239872b5f38c.zip
Conditionalize result of a bytecomp test
* test/lisp/emacs-lisp/bytecomp-tests.el (bytecomp-test--switch-duplicates): Apparently the result depends on byte-compile-cond-use-jump-table.
-rw-r--r--test/lisp/emacs-lisp/bytecomp-tests.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/bytecomp-tests.el b/test/lisp/emacs-lisp/bytecomp-tests.el
index 5bd36898702..94ecdc54daa 100644
--- a/test/lisp/emacs-lisp/bytecomp-tests.el
+++ b/test/lisp/emacs-lisp/bytecomp-tests.el
@@ -686,6 +686,7 @@ literals (Bug#20852)."
686 686
687(ert-deftest bytecomp-test--switch-duplicates () 687(ert-deftest bytecomp-test--switch-duplicates ()
688 "Check that duplicates in switches are eliminated correctly (bug#35770)." 688 "Check that duplicates in switches are eliminated correctly (bug#35770)."
689 :expected-result (if byte-compile-cond-use-jump-table :passed :failed)
689 (dolist (params 690 (dolist (params
690 '(((lambda (x) 691 '(((lambda (x)
691 (cond ((eq x 'a) 111) 692 (cond ((eq x 'a) 111)