]> git.eshelyaron.com Git - emacs.git/commitdiff
Skip a json.c test unless functions being tested exist
authorJoão Távora <joaotavora@gmail.com>
Tue, 19 Jun 2018 02:02:09 +0000 (03:02 +0100)
committerJoão Távora <joaotavora@gmail.com>
Tue, 19 Jun 2018 02:02:09 +0000 (03:02 +0100)
* test/src/json-tests.el
(json-parse-with-custom-null-and-false-objects): Skip this test
unless functions being tested exist.

test/src/json-tests.el

index ffa6fe19f9b1394a43376dd4d6941c52fcfb17aa..8bd679b886ef8f57e4a6c86deae5e65dd8e5dfff 100644 (file)
@@ -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