Commit 3c639603 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

winetest: Set correct WINETEST_PLATFORM when running under Wine.

parent a7c5906b
...@@ -629,16 +629,20 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, ...@@ -629,16 +629,20 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
} }
if (!submit) { if (!submit) {
static CHAR platform_windows[] = "WINETEST_PLATFORM=windows", static CHAR platform_windows[] = "WINETEST_PLATFORM=windows",
platform_wine[] = "WINETEST_PLATFORM=wine",
debug_yes[] = "WINETEST_DEBUG=1", debug_yes[] = "WINETEST_DEBUG=1",
interactive_no[] = "WINETEST_INTERACTIVE=0", interactive_no[] = "WINETEST_INTERACTIVE=0",
report_success_no[] = "WINETEST_REPORT_SUCCESS=0"; report_success_no[] = "WINETEST_REPORT_SUCCESS=0";
CHAR *platform;
report (R_STATUS, "Starting up"); report (R_STATUS, "Starting up");
if (!running_on_visible_desktop ()) if (!running_on_visible_desktop ())
report (R_FATAL, "Tests must be run on a visible desktop"); report (R_FATAL, "Tests must be run on a visible desktop");
if (reset_env && (putenv (platform_windows) || platform = running_under_wine () ? platform_wine : platform_windows;
if (reset_env && (putenv (platform) ||
putenv (debug_yes) || putenv (debug_yes) ||
putenv (interactive_no) || putenv (interactive_no) ||
putenv (report_success_no))) putenv (report_success_no)))
......
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