From 95dce77c5ecb46cff62c2bc45c2a239872b5f38c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 9 Jul 2019 03:25:13 -0700 Subject: 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. --- test/lisp/emacs-lisp/bytecomp-tests.el | 1 + 1 file changed, 1 insertion(+) (limited to 'test/lisp/emacs-lisp') 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)." (ert-deftest bytecomp-test--switch-duplicates () "Check that duplicates in switches are eliminated correctly (bug#35770)." + :expected-result (if byte-compile-cond-use-jump-table :passed :failed) (dolist (params '(((lambda (x) (cond ((eq x 'a) 111) -- cgit v1.2.3