mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 13:39:06 +08:00
Merge pull request #576 from besser82/topic/besser82/increase_coverage
Test coverage for json_c_version.
This commit is contained in:
@@ -138,6 +138,12 @@ int main(int argc, char **argv)
|
||||
}
|
||||
testdir = argv[1];
|
||||
|
||||
// Test json_c_version.c
|
||||
if (strncmp(json_c_version(), JSON_C_VERSION, sizeof(JSON_C_VERSION)))
|
||||
return EXIT_FAILURE;
|
||||
if (json_c_version_num() != JSON_C_VERSION_NUM)
|
||||
return EXIT_FAILURE;
|
||||
|
||||
test_read_valid_with_fd(testdir);
|
||||
test_read_valid_nested_with_fd(testdir);
|
||||
test_read_nonexistant();
|
||||
|
||||
Reference in New Issue
Block a user