From c0c4d702b5560c0590d73af4ea055514cab38e4f Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 15 May 2021 18:48:54 +0100 Subject: Tests: libjson-c does not provide is_error any more. --- test/tokeniser2.c | 2 +- test/tokeniser3.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tokeniser2.c b/test/tokeniser2.c index c8ab9c0..79d84ca 100644 --- a/test/tokeniser2.c +++ b/test/tokeniser2.c @@ -48,7 +48,7 @@ int main(int argc, char **argv) } json = json_object_from_file(argv[1]); - assert(!is_error(json)); + assert(json != NULL); assert(strcmp((char *) ((json_object_get_object(json)->head)->k), "tests") == 0); diff --git a/test/tokeniser3.c b/test/tokeniser3.c index e33d018..22bda5c 100644 --- a/test/tokeniser3.c +++ b/test/tokeniser3.c @@ -46,7 +46,7 @@ int main(int argc, char **argv) } json = json_object_from_file(argv[1]); - assert(!is_error(json)); + assert(json != NULL); assert(strcmp((char *) ((json_object_get_object(json)->head)->k), "tests") == 0); -- cgit v1.2.1