mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-13 16:52:39 +00:00
Fix filebuf0 test which was failing on Windows
This commit is contained in:
parent
9e3aa94764
commit
95818ff73a
@ -664,9 +664,12 @@ END_TEST
|
|||||||
|
|
||||||
BEGIN_TEST(filebuf0, "make sure git_filebuf_open doesn't delete an existing lock")
|
BEGIN_TEST(filebuf0, "make sure git_filebuf_open doesn't delete an existing lock")
|
||||||
git_filebuf file;
|
git_filebuf file;
|
||||||
|
int fd;
|
||||||
char test[] = "test", testlock[] = "test.lock";
|
char test[] = "test", testlock[] = "test.lock";
|
||||||
|
|
||||||
must_pass(gitfo_creat(testlock, 0744));
|
fd = gitfo_creat(testlock, 0744);
|
||||||
|
must_pass(fd);
|
||||||
|
must_pass(gitfo_close(fd));
|
||||||
must_fail(git_filebuf_open(&file, test, 0));
|
must_fail(git_filebuf_open(&file, test, 0));
|
||||||
must_pass(gitfo_exists(testlock));
|
must_pass(gitfo_exists(testlock));
|
||||||
must_pass(gitfo_unlink(testlock));
|
must_pass(gitfo_unlink(testlock));
|
||||||
|
Loading…
Reference in New Issue
Block a user