mirror of
https://github.com/json-c/json-c.git
synced 2026-04-04 21:09:06 +08:00
Be verbose on failing json_c_version test.
This commit is contained in:
@@ -140,9 +140,17 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
// Test json_c_version.c
|
// Test json_c_version.c
|
||||||
if (strncmp(json_c_version(), JSON_C_VERSION, sizeof(JSON_C_VERSION)))
|
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;
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
if (json_c_version_num() != JSON_C_VERSION_NUM)
|
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;
|
return EXIT_FAILURE;
|
||||||
|
}
|
||||||
|
|
||||||
test_read_valid_with_fd(testdir);
|
test_read_valid_with_fd(testdir);
|
||||||
test_read_valid_nested_with_fd(testdir);
|
test_read_valid_nested_with_fd(testdir);
|
||||||
|
|||||||
Reference in New Issue
Block a user