Commit 9d0fa2f0 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

- kernel32's environment tests: a few more tests now succeed

- added some console related tests to process creation - added a few more test cases to the ntdll environment tests
parent b53b5bcb
......@@ -141,9 +141,8 @@ static void test_GetSetEnvironmentVariableW(void)
lstrcpyW(buf, fooW);
ret_size = GetEnvironmentVariableW(name, buf, lstrlenW(value));
todo_wine {
ok(lstrcmpW(buf, fooW) == 0, "should not touch the buffer");
};
ok(lstrcmpW(buf, fooW) == 0, "should not touch the buffer");
ok(ret_size == lstrlenW(value) + 1,
"should return length with terminating 0 ret_size=%ld", ret_size);
......@@ -190,10 +189,7 @@ static void test_GetSetEnvironmentVariableW(void)
ok(ret_size == 0 && GetLastError() == ERROR_ENVVAR_NOT_FOUND,
"should not find variable but ret_size=%ld GetLastError=%ld",
ret_size, GetLastError());
todo_wine {
ok(lstrcmpW(buf, empty_strW) == 0, "should copy an empty string");
};
ok(lstrcmpW(buf, empty_strW) == 0, "should copy an empty string");
/* Test the limits */
ret_size = GetEnvironmentVariableW(NULL, NULL, 0);
......
......@@ -48,6 +48,7 @@ static WCHAR small_env[] = {'f','o','o','=','t','o','t','o',0,
'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a',
'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a',0,
'=','o','O','H','=','I','I','I',0,
'n','u','l','=',0,
0};
static void testQuery(void)
......@@ -77,6 +78,7 @@ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
{"sr", 256, STATUS_SUCCESS, "an=ouo"},
{"=oOH", 256, STATUS_SUCCESS, "III"},
{"", 256, STATUS_VARIABLE_NOT_FOUND, NULL},
{"nul", 256, STATUS_SUCCESS, ""},
{NULL, 0, 0, NULL}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment