diff options
author | Philip Kelley <phkelley@hotmail.com> | 2014-06-07 12:37:49 -0400 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2014-06-07 12:37:49 -0400 |
commit | df192198d3ac2a2bd3d7960477e48602f648ec08 (patch) | |
tree | d762daebf5ff866d9798876a4087ed3c3d64e53b | |
parent | 716e20b47eb82ebd94588fe6c950e661b6fe4f15 (diff) | |
parent | daf2a648b1dcc02665dcf9c6f5317db61d84be89 (diff) | |
download | libgit2-df192198d3ac2a2bd3d7960477e48602f648ec08.tar.gz |
Merge pull request #2408 from phkelley/win32_test_fixes
Win32 test fixes
-rw-r--r-- | tests/online/clone.c | 3 | ||||
-rw-r--r-- | tests/submodule/submodule_helpers.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c index e269771c0..8a2a64f95 100644 --- a/tests/online/clone.c +++ b/tests/online/clone.c @@ -194,6 +194,9 @@ void test_online_clone__clone_mirror(void) git_remote_free(remote); git_reference_free(head); git_buf_free(&path); + git_repository_free(g_repo); + g_repo = NULL; + cl_fixture_cleanup("./foo.git"); } diff --git a/tests/submodule/submodule_helpers.c b/tests/submodule/submodule_helpers.c index 50aa97568..c6d04b40a 100644 --- a/tests/submodule/submodule_helpers.c +++ b/tests/submodule/submodule_helpers.c @@ -19,8 +19,8 @@ void rewrite_gitmodules(const char *workdir) cl_git_pass(git_buf_joinpath(&in_f, workdir, "gitmodules")); cl_git_pass(git_buf_joinpath(&out_f, workdir, ".gitmodules")); - cl_assert((in = fopen(in_f.ptr, "r")) != NULL); - cl_assert((out = fopen(out_f.ptr, "w")) != NULL); + cl_assert((in = fopen(in_f.ptr, "rb")) != NULL); + cl_assert((out = fopen(out_f.ptr, "wb")) != NULL); while (fgets(line, sizeof(line), in) != NULL) { char *scan = line; |