From: Björn Esser Date: Sat, 11 Apr 2020 19:09:31 +0000 (+0200) Subject: Be verbose on failing json_c_version test. X-Git-Tag: json-c-0.14-20200419~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F577%2Fhead;p=thirdparty%2Fjson-c.git Be verbose on failing json_c_version test. --- diff --git a/tests/test_util_file.c b/tests/test_util_file.c index d4ccde7d..ebc5edb9 100644 --- a/tests/test_util_file.c +++ b/tests/test_util_file.c @@ -140,9 +140,17 @@ int main(int argc, char **argv) // Test json_c_version.c if (strncmp(json_c_version(), JSON_C_VERSION, sizeof(JSON_C_VERSION))) + { + printf("FAIL: Output from json_c_version(): %s " + "does not match %s", json_c_version(), JSON_C_VERSION); return EXIT_FAILURE; + } if (json_c_version_num() != JSON_C_VERSION_NUM) + { + printf("FAIL: Output from json_c_version_num(): %d " + "does not match %d", json_c_version_num(), JSON_C_VERSION_NUM); return EXIT_FAILURE; + } test_read_valid_with_fd(testdir); test_read_valid_nested_with_fd(testdir);