Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2011-07-03 16:42:32 +0400
committerschu <schu-github@schulog.org>2011-07-06 14:25:27 +0400
commit1ee5fd903d00930aab08edecc6b409a34761cf7e (patch)
tree076eef83fd6f8d462aa84779c45385de21b394d4 /tests
parent0ffcf78a30377971d4928439ae387396b3922cbf (diff)
Fix windows specific issues
- msvc compilation warnings - not released file handle that prevents file removal
Diffstat (limited to 'tests')
-rw-r--r--tests/t00-core.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/t00-core.c b/tests/t00-core.c
index 0042da39c..1e9f97521 100644
--- a/tests/t00-core.c
+++ b/tests/t00-core.c
@@ -513,13 +513,14 @@ END_TEST
BEGIN_TEST(rmdir1, "make sure non-empty dir cannot be deleted recusively")
char file[GIT_PATH_MAX];
+ int fd;
must_pass(setup_empty_tmp_dir());
git_path_join(file, empty_tmp_dir, "/two/file.txt");
- must_pass(fd = p_creat(file, 0755));
+ fd = p_creat(file, 0755);
must_pass(fd);
- must_fail(git_futils_rmdir_recurs(empty_tmp_dir));
must_pass(p_close(fd));
+ must_fail(git_futils_rmdir_recurs(empty_tmp_dir));
must_pass(p_unlink(file));
must_pass(git_futils_rmdir_recurs(empty_tmp_dir));
END_TEST