winetest: don't offer submitting with the -o option

Ferenc Wagner wferi at afavant.elte.hu
Mon Oct 4 11:11:29 CDT 2004


ChangeLog: * Do not offer submitting the report if the -o
             option was given.

Index: programs/winetest/main.c
===================================================================
RCS file: /home/wine/wine/programs/winetest/main.c,v
retrieving revision 1.22
diff -u -r1.22 main.c
--- programs/winetest/main.c	7 Sep 2004 19:33:52 -0000	1.22
+++ programs/winetest/main.c	4 Oct 2004 16:00:38 -0000
@@ -581,12 +581,14 @@
             report (R_FATAL, "Could not reset environment: %d", errno);
 
         report (R_STATUS, "Starting up");
-        logname = run_tests (logname, tag);
-        if (report (R_ASK, MB_YESNO, "Do you want to submit the "
-                    "test results?") == IDYES)
-            if (!send_file (logname) && remove (logname))
-                report (R_WARNING, "Can't remove logfile: %d.", errno);
-        free (logname);
+        if (!logname) {
+            logname = run_tests (NULL, tag);
+            if (report (R_ASK, MB_YESNO, "Do you want to submit the "
+                        "test results?") == IDYES)
+                if (!send_file (logname) && remove (logname))
+                    report (R_WARNING, "Can't remove logfile: %d.", errno);
+            free (logname);
+        } else run_tests (logname, tag);
         report (R_STATUS, "Finished");
     }
     exit (0);



More information about the wine-patches mailing list