summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-03-12 11:31:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:49:28 -0500
commitde75e93817da856f1e79f616e4fc09c27ab626c0 (patch)
treec86caec27773d22d5d1d059b481512457d68e0dd
parent14233bb76fbd96b46d2b845fde1cb7c668d405b0 (diff)
downloadsamba-de75e93817da856f1e79f616e4fc09c27ab626c0.tar.gz
samba-de75e93817da856f1e79f616e4fc09c27ab626c0.tar.bz2
samba-de75e93817da856f1e79f616e4fc09c27ab626c0.zip
r21796: check if unsetenv() works on an non-existing key
metze (This used to be commit c6b4f2d1518c989cacdc8869df89f02dc54857d7)
-rw-r--r--source4/lib/replace/test/testsuite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/replace/test/testsuite.c b/source4/lib/replace/test/testsuite.c
index c2f5ff9a6b..44c218270c 100644
--- a/source4/lib/replace/test/testsuite.c
+++ b/source4/lib/replace/test/testsuite.c
@@ -229,8 +229,10 @@ static int test_setenv(void)
TEST_SETENV(SETENVTEST_KEY, SETENVTEST_VAL"3", 1, SETENVTEST_VAL"3");
TEST_SETENV(SETENVTEST_KEY, SETENVTEST_VAL"4", 1, SETENVTEST_VAL"4");
TEST_UNSETENV(SETENVTEST_KEY);
+ TEST_UNSETENV(SETENVTEST_KEY);
TEST_SETENV(SETENVTEST_KEY, SETENVTEST_VAL"5", 0, SETENVTEST_VAL"5");
TEST_UNSETENV(SETENVTEST_KEY);
+ TEST_UNSETENV(SETENVTEST_KEY);
printf("success: setenv\n");
return true;
}