diff options
author | Ben Straub <bstraub@github.com> | 2012-06-08 11:24:37 -0700 |
---|---|---|
committer | Ben Straub <bstraub@github.com> | 2012-06-08 11:24:37 -0700 |
commit | e272efcb20332ed36a6316c4152f50f9dbcf2a00 (patch) | |
tree | 7bdfbb76e18a6e9c89684942dbd6daef0e38feae /tests-clar/refs/revparse.c | |
parent | 3f0358604e48432b53abf097aa3ab6a1e3639813 (diff) | |
download | libgit2-e272efcb20332ed36a6316c4152f50f9dbcf2a00.tar.gz |
Tests: wrap 'getenv' and friends for Win32 tests.
Diffstat (limited to 'tests-clar/refs/revparse.c')
-rw-r--r-- | tests-clar/refs/revparse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/refs/revparse.c b/tests-clar/refs/revparse.c index 0610df7e4..fda99e9da 100644 --- a/tests-clar/refs/revparse.c +++ b/tests-clar/refs/revparse.c @@ -24,10 +24,10 @@ static void test_object(const char *spec, const char *expected_oid) void test_refs_revparse__initialize(void) { - char *tz = getenv("TZ"); + char *tz = cl_getenv("TZ"); if (tz) strcpy(g_orig_tz, tz); - setenv("TZ", "UTC", 1); + cl_setenv("TZ", "UTC"); g_repo = cl_git_sandbox_init("testrepo.git"); } @@ -35,7 +35,7 @@ void test_refs_revparse__cleanup(void) { cl_git_sandbox_cleanup(); g_obj = NULL; - setenv("TZ", g_orig_tz, 1); + cl_setenv("TZ", g_orig_tz); } |