Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a5d7cc47
Commit
a5d7cc47
authored
Nov 10, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Add tests about intricating kernel32 and msvcrt env calls.
Signed-off-by:
Eric Pouech
<
epouech@codeweavers.com
>
parent
8b50afed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
environ.c
dlls/msvcrt/tests/environ.c
+9
-0
No files found.
dlls/msvcrt/tests/environ.c
View file @
a5d7cc47
...
...
@@ -366,6 +366,15 @@ static void test_environment_manipulation(void)
ok
(
count
+
1
==
env_get_entry_countA
(
*
p_environ
),
"Unexpected count
\n
"
);
ok
(
_putenv
(
"__winetest_dog="
)
==
0
,
"Couldn't reset env var
\n
"
);
ok
(
count
==
env_get_entry_countA
(
*
p_environ
),
"Unexpected count
\n
"
);
/* in putenv, only changed variable is updated (no other reload of kernel info is done) */
ret
=
SetEnvironmentVariableA
(
"__winetest_cat"
,
"meow"
);
ok
(
ret
,
"SetEnvironmentVariableA failed: %lu
\n
"
,
GetLastError
()
);
ok
(
_putenv
(
"__winetest_dog=bark"
)
==
0
,
"Couldn't set env var
\n
"
);
todo_wine
ok
(
getenv
(
"__winetest_cat"
)
==
NULL
,
"msvcrt env cache shouldn't have been updated
\n
"
);
ok
(
_putenv
(
"__winetest_cat="
)
==
0
,
"Couldn't reset env var
\n
"
);
ok
(
_putenv
(
"__winetest_dog="
)
==
0
,
"Couldn't reset env var
\n
"
);
}
START_TEST
(
environ
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment