summaryrefslogtreecommitdiff
path: root/tests/filter
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-07-02 09:25:48 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2015-07-02 16:35:43 +0000
commite069c621bdd62e603b048eb536f5a978a905b310 (patch)
treee3fa76833856f675d8eda911059a254465cfdf75 /tests/filter
parentaa92c318a235cc6a5230682b9c071eb35f9c5f4c (diff)
downloadlibgit2-e069c621bdd62e603b048eb536f5a978a905b310.tar.gz
git__getenv: utf-8 aware env reader
Introduce `git__getenv` which is a UTF-8 aware `getenv` everywhere. Make `cl_getenv` use this to keep consistent memory handling around return values (free everywhere, as opposed to only some platforms).
Diffstat (limited to 'tests/filter')
-rw-r--r--tests/filter/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/filter/stream.c b/tests/filter/stream.c
index 603f19494..9228911b6 100644
--- a/tests/filter/stream.c
+++ b/tests/filter/stream.c
@@ -214,7 +214,7 @@ void test_filter_stream__smallfile(void)
/* optionally write a 500 MB file through the compression stream */
void test_filter_stream__bigfile(void)
{
- if (!cl_getenv("GITTEST_INVASIVE_FS_SIZE"))
+ if (!cl_is_env_set("GITTEST_INVASIVE_FS_SIZE"))
cl_skip();
test_stream(51200);