mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-30 15:11:33 +00:00
tests-clay: remove extra semi-colon in clay_libgit2.h, add one to index/rename.c
This commit is contained in:
parent
f80263225b
commit
b026b00d9c
@ -16,7 +16,7 @@
|
|||||||
git_clearerror(); \
|
git_clearerror(); \
|
||||||
if ((expr) != GIT_SUCCESS) \
|
if ((expr) != GIT_SUCCESS) \
|
||||||
clay__assert(0, __FILE__, __LINE__, "Function call failed: " #expr, git_lasterror(), 1); \
|
clay__assert(0, __FILE__, __LINE__, "Function call failed: " #expr, git_lasterror(), 1); \
|
||||||
} while(0);
|
} while(0)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrapper for `clay_must_fail` -- this one is
|
* Wrapper for `clay_must_fail` -- this one is
|
||||||
|
@ -8,7 +8,7 @@ static void file_create(const char *filename, const char *content)
|
|||||||
fd = p_creat(filename, 0666);
|
fd = p_creat(filename, 0666);
|
||||||
cl_assert(fd != 0);
|
cl_assert(fd != 0);
|
||||||
cl_git_pass(p_write(fd, content, strlen(content)));
|
cl_git_pass(p_write(fd, content, strlen(content)));
|
||||||
cl_git_pass(p_close(fd))
|
cl_git_pass(p_close(fd));
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_index_rename__single_file(void)
|
void test_index_rename__single_file(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user