]> git.eshelyaron.com Git - emacs.git/commitdiff
Conditionalize result of a bytecomp test
authorGlenn Morris <rgm@gnu.org>
Tue, 9 Jul 2019 10:25:13 +0000 (03:25 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 9 Jul 2019 10:27:26 +0000 (03:27 -0700)
* 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

index 5bd36898702babd5aac3018ad536aa179c42ae5a..94ecdc54daa0c2451c71a4c8411fafe04732ea2d 100644 (file)
@@ -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)