winetest: code reorder

Ferenc Wagner wferi at tba.elte.hu
Fri Mar 25 05:21:18 CST 2005


ChangeLog: Check desktop visibility after processing command
           line arguments.

Feri.

Index: programs/winetest/main.c
===================================================================
RCS file: /home/wine/wine/programs/winetest/main.c,v
retrieving revision 1.30
diff -u -r1.30 main.c
--- programs/winetest/main.c	14 Mar 2005 10:06:22 -0000	1.30
+++ programs/winetest/main.c	25 Mar 2005 11:19:01 -0000
@@ -551,11 +559,6 @@
     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();
 
@@ -605,6 +610,11 @@
         cmdLine = strtok (NULL, whitespace);
     }
     if (!submit) {
+        if (!running_on_visible_desktop ()) {
+            report (R_ERROR, "Tests must be run on a visible desktop");
+            exit (2);
+        }
+
         if (reset_env && (putenv ("WINETEST_PLATFORM=windows") ||
                           putenv ("WINETEST_DEBUG=1") || 
                           putenv ("WINETEST_INTERACTIVE=0") ||



More information about the wine-patches mailing list