Lei Zhang : userenv: Add a test for variable inheritance for CreateEnvironmentBlock.
Alexandre Julliard
julliard at winehq.org
Thu May 1 06:39:19 CDT 2008
Module: wine
Branch: master
Commit: 0f7bae5af8f1d661155bdd8f4661fc8b09d5bcea
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0f7bae5af8f1d661155bdd8f4661fc8b09d5bcea
Author: Lei Zhang <thestig at google.com>
Date: Wed Apr 30 17:45:21 2008 -0700
userenv: Add a test for variable inheritance for CreateEnvironmentBlock.
---
dlls/userenv/tests/userenv.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/userenv/tests/userenv.c b/dlls/userenv/tests/userenv.c
index 0923774..eccb1f1 100644
--- a/dlls/userenv/tests/userenv.c
+++ b/dlls/userenv/tests/userenv.c
@@ -186,6 +186,9 @@ static void test_create_env(void)
{ 0, { 0, 0, 0, 0 } }
};
+ r = SetEnvironmentVariableA("WINE_XYZZY", "ZZYZX");
+ expect(TRUE, r);
+
r = CreateEnvironmentBlock(NULL, NULL, FALSE);
expect(FALSE, r);
@@ -268,6 +271,15 @@ static void test_create_env(void)
expect_env(TRUE, r, htok_vars[i].name);
i++;
}
+
+ r = get_env(env1, "WINE_XYZZY", &st);
+ expect(FALSE, r);
+ r = get_env(env2, "WINE_XYZZY", &st);
+ expect(FALSE, r);
+ r = get_env(env3, "WINE_XYZZY", &st);
+ expect(TRUE, r);
+ r = get_env(env4, "WINE_XYZZY", &st);
+ expect(TRUE, r);
}
START_TEST(userenv)
More information about the wine-cvs
mailing list