From b486324059622db3d1ac2473264733ae61660efe Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Tue, 8 Mar 2005 18:58:58 +0000 Subject: [PATCH] Make running tests on a visible desktop a mandatory requirement. --- programs/winetest/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/winetest/main.c b/programs/winetest/main.c index 5f4b293175f..9167b335eed 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -547,6 +547,11 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, const char *cp, *submit = NULL, *tag = NULL; int reset_env = 1; + if (!running_on_visible_desktop ()) { + report (R_ERROR, "Tests must be run on a visible desktop"); + exit (2); + } + /* initialize the revision information first */ extract_rev_infos();