Browse Source

Test coverage for json_c_version.

tags/json-c-0.14-20200419
Björn Esser 5 years ago
parent
commit
d47fb12e85
No known key found for this signature in database GPG Key ID: F52E98007594C21D
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      tests/test_util_file.c

+ 6
- 0
tests/test_util_file.c View File

@@ -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();


Loading…
Cancel
Save