From 1e2e48c13c3902c251360bce83a5fa212fd4b825 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Tue, 19 Jun 2018 03:02:09 +0100 Subject: [PATCH] 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. --- test/src/json-tests.el | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5