You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

test_util_file.expected 1.2 kB

123456789101112131415161718192021
  1. OK: json_object_from_fd(./valid.json)={ "foo": 123 }
  2. OK: json_object_from_file(./not_present.json) correctly returned NULL: json_object_from_file: error opening file ./not_present.json: ERRNO=ENOENT
  3. OK: json_object_from_fd(closed_fd), expecting NULL, EBADF, got:0x0, json_object_from_fd: error reading fd 3: ERRNO=EBADF
  4. OK: json_object_to_file(json.out, jso)=0
  5. file[json.out], size=336, contents={"foo":1234,"foo1":"abcdefghijklmnopqrstuvwxyz","foo2":"abcdefghijklmnopqrstuvwxyz","foo3":"abcdefghijklmnopqrstuvwxyz","foo4":"abcdefghijklmnopqrstuvwxyz","foo5":"abcdefghijklmnopqrstuvwxyz","foo6":"abcdefghijklmnopqrstuvwxyz","foo7":"abcdefghijklmnopqrstuvwxyz","foo8":"abcdefghijklmnopqrstuvwxyz","foo9":"abcdefghijklmnopqrstuvwxyz"}
  6. OK: json_object_to_file_ext(json2.out, jso, JSON_C_TO_STRING_PRETTY)=0
  7. file[json2.out], size=367, contents={
  8. "foo":1234,
  9. "foo1":"abcdefghijklmnopqrstuvwxyz",
  10. "foo2":"abcdefghijklmnopqrstuvwxyz",
  11. "foo3":"abcdefghijklmnopqrstuvwxyz",
  12. "foo4":"abcdefghijklmnopqrstuvwxyz",
  13. "foo5":"abcdefghijklmnopqrstuvwxyz",
  14. "foo6":"abcdefghijklmnopqrstuvwxyz",
  15. "foo7":"abcdefghijklmnopqrstuvwxyz",
  16. "foo8":"abcdefghijklmnopqrstuvwxyz",
  17. "foo9":"abcdefghijklmnopqrstuvwxyz"
  18. }