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

oldstable
Ferenc Wagner 2004-10-04 19:32:20 +00:00 committed by Alexandre Julliard
parent 304e0796cd
commit fbf77db884
1 changed files with 8 additions and 6 deletions

View File

@ -581,12 +581,14 @@ int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst,
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);