Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b008b053
Commit
b008b053
authored
Aug 01, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winetest: Set environment variables in the Win32 environment.
parent
b25eb554
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
main.c
programs/winetest/main.c
+7
-14
No files found.
programs/winetest/main.c
View file @
b008b053
...
...
@@ -659,25 +659,18 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
cmdLine
=
strtok
(
NULL
,
whitespace
);
}
if
(
!
submit
)
{
static
CHAR
platform_windows
[]
=
"WINETEST_PLATFORM=windows"
,
platform_wine
[]
=
"WINETEST_PLATFORM=wine"
,
debug_yes
[]
=
"WINETEST_DEBUG=1"
,
interactive_no
[]
=
"WINETEST_INTERACTIVE=0"
,
report_success_no
[]
=
"WINETEST_REPORT_SUCCESS=0"
;
CHAR
*
platform
;
report
(
R_STATUS
,
"Starting up"
);
if
(
!
running_on_visible_desktop
())
report
(
R_FATAL
,
"Tests must be run on a visible desktop"
);
platform
=
running_under_wine
()
?
platform_wine
:
platform_windows
;
if
(
reset_env
&&
(
putenv
(
platform
)
||
putenv
(
debug_yes
)
||
putenv
(
interactive_no
)
||
putenv
(
report_success_no
)))
report
(
R_FATAL
,
"Could not reset environment"
);
if
(
reset_env
)
{
SetEnvironmentVariableA
(
"WINETEST_PLATFORM"
,
running_under_wine
()
?
"wine"
:
"windows"
);
SetEnvironmentVariableA
(
"WINETEST_DEBUG"
,
"1"
);
SetEnvironmentVariableA
(
"WINETEST_INTERACTIVE"
,
"0"
);
SetEnvironmentVariableA
(
"WINETEST_REPORT_SUCCESS"
,
"0"
);
}
if
(
!
tag
)
{
if
(
!
interactive
)
...
...
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