summaryrefslogtreecommitdiffstats
path: root/test/test_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_string.c')
-rw-r--r--test/test_string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_string.c b/test/test_string.c
index 48021ed..028b7da 100644
--- a/test/test_string.c
+++ b/test/test_string.c
@@ -21,10 +21,10 @@ main(void)
#ifndef _WIN32
char* s = NULL;
- const char* const home = getenv("HOME");
-
setenv("LILV_TEST_1", "test", 1);
+ const char* const home = getenv("HOME");
+
assert(!strcmp((s = lilv_expand("$LILV_TEST_1")), "test"));
free(s);
if (home) {