Fix absolute paths in test_util_file that vary depending on where it is run.

This commit is contained in:
Eric Haszlakiewicz
2016-06-27 04:29:07 +00:00
parent b1d65b62db
commit 2b255d0ebf
3 changed files with 13 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
OK: json_object_from_fd(/home/erh/json-c/json-c/tests/valid.json)={ "foo": 123 }
OK: json_object_from_file(not_present.json) correctly returned NULL: json_object_from_file: error opening file /home/erh/json-c/json-c/tests/not_present.json: ERRNO=ENOENT
OK: json_object_from_fd(./valid.json)={ "foo": 123 }
OK: json_object_from_file(./not_present.json) correctly returned NULL: json_object_from_file: error opening file ./not_present.json: ERRNO=ENOENT
OK: json_object_from_fd(closed_fd), expecting NULL, EBADF, got:0x0, json_object_from_fd: error reading fd 3: ERRNO=EBADF