From: João Távora Date: Tue, 19 Jun 2018 02:02:09 +0000 (+0100) Subject: Skip a json.c test unless functions being tested exist X-Git-Tag: emacs-27.0.90~4792 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e2e48c13c3902c251360bce83a5fa212fd4b825;p=emacs.git Skip a json.c test unless functions being tested exist * test/src/json-tests.el (json-parse-with-custom-null-and-false-objects): Skip this test unless functions being tested exist. --- diff --git a/test/src/json-tests.el b/test/src/json-tests.el index ffa6fe19f9b..8bd679b886e 100644 --- a/test/src/json-tests.el +++ b/test/src/json-tests.el @@ -210,6 +210,8 @@ Test with both unibyte and multibyte strings." (should (looking-at-p (rx " [456]" eos))))) (ert-deftest json-parse-with-custom-null-and-false-objects () + (skip-unless (and (fboundp 'json-serialize) + (fboundp 'json-parse-string))) (let* ((input "{ \"abc\" : [9, false] , \"def\" : null }") (output