diff options
| author | Paul Betts <paul@paulbetts.org> | 2011-09-21 11:17:30 -0700 |
|---|---|---|
| committer | Paul Betts <paul@paulbetts.org> | 2011-09-21 12:00:34 -0700 |
| commit | e1b86444676b70154bf8ab450d429bdef57a8276 (patch) | |
| tree | 020b42f514cd78ddd44b4d38e0f57cd88f17616f /tests/t16-remotes.c | |
| parent | e3ecf7e9ab043e44ffd94729f27e3a0c434c355a (diff) | |
| download | libgit2-e1b86444676b70154bf8ab450d429bdef57a8276.tar.gz | |
Rewrite getenv to use Win32 version on Windows
Diffstat (limited to 'tests/t16-remotes.c')
| -rw-r--r-- | tests/t16-remotes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/t16-remotes.c b/tests/t16-remotes.c index af54f297d..b76557fb4 100644 --- a/tests/t16-remotes.c +++ b/tests/t16-remotes.c @@ -34,7 +34,7 @@ BEGIN_TEST(remotes0, "remote parsing works") git_config *cfg; char *old_home; - old_home = git__strdup(getenv("HOME")); + old_home = p_getenv("HOME"); p_setenv("HOME", "/dev/null", 1); must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); @@ -58,7 +58,7 @@ BEGIN_TEST(refspec0, "remote with refspec works") const git_refspec *refspec = NULL; char *old_home; - old_home = git__strdup(getenv("HOME")); + old_home = p_getenv("HOME"); p_setenv("HOME", "/dev/null", 1); must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); @@ -83,7 +83,7 @@ BEGIN_TEST(refspec1, "remote fnmatch works as expected") const git_refspec *refspec = NULL; char *old_home; - old_home = git__strdup(getenv("HOME")); + old_home = p_getenv("HOME"); p_setenv("HOME", "/dev/null", 1); must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); @@ -109,7 +109,7 @@ BEGIN_TEST(refspec2, "refspec transform") char ref[1024] = {0}; char *old_home; - old_home = git__strdup(getenv("HOME")); + old_home = p_getenv("HOME"); p_setenv("HOME", "/dev/null", 1); must_pass(git_repository_open(&repo, REPOSITORY_FOLDER)); |
