diff options
author | Jeff Hostetler <jeffhost@microsoft.com> | 2014-11-26 14:12:11 -0500 |
---|---|---|
committer | Jeff Hostetler <jeffhost@microsoft.com> | 2014-11-26 14:12:11 -0500 |
commit | 93aef71e90c8dd00eab1274cfec90d4b0a5cb7ba (patch) | |
tree | 1ae6ff3a2f09bcee6bcfb10f59077877642f2e1b | |
parent | 53e48b370c585d5552cea7538bb20db500a865d7 (diff) | |
download | libgit2-93aef71e90c8dd00eab1274cfec90d4b0a5cb7ba.tar.gz |
fix cl_git_mkfile() to test for -1 rather than 0 for errors from p_creat()
-rw-r--r-- | tests/clar_libgit2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/clar_libgit2.c b/tests/clar_libgit2.c index faeee031a..9640b9265 100644 --- a/tests/clar_libgit2.c +++ b/tests/clar_libgit2.c @@ -18,7 +18,7 @@ void cl_git_mkfile(const char *filename, const char *content) int fd; fd = p_creat(filename, 0666); - cl_assert(fd != 0); + cl_assert(fd != -1); if (content) { cl_must_pass(p_write(fd, content, strlen(content))); |