diff options
author | Björn Esser <besser82@fedoraproject.org> | 2020-04-11 21:09:31 +0200 |
---|---|---|
committer | Björn Esser <besser82@fedoraproject.org> | 2020-04-11 21:09:31 +0200 |
commit | 5e699f7f7321cd39c80a032e4612ef778cb845b2 (patch) | |
tree | 479584b471283cf921547a342ad461c61040c877 | |
parent | c58d56ab7cf7b91daa0335428ba9f99daca369ef (diff) | |
download | json-c-5e699f7f7321cd39c80a032e4612ef778cb845b2.tar.gz |
Be verbose on failing json_c_version test.
-rw-r--r-- | tests/test_util_file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_util_file.c b/tests/test_util_file.c index d4ccde7..ebc5edb 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); |