Module: wine Branch: master Commit: 0f9628808034d979937cb4954dde930aec6c68b3 URL: https://gitlab.winehq.org/wine/wine/-/commit/0f9628808034d979937cb4954dde930...
Author: Alexandre Julliard julliard@winehq.org Date: Thu Sep 8 18:44:56 2022 +0200
winetest: Report success if the report has been submitted successfully.
---
programs/winetest/main.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/programs/winetest/main.c b/programs/winetest/main.c index 38f44d2e717..59965526e02 100644 --- a/programs/winetest/main.c +++ b/programs/winetest/main.c @@ -1525,10 +1525,18 @@ int __cdecl main( int argc, char *argv[] ) if (build_id[0] && nr_of_skips <= SKIP_LIMIT && failures <= FAILURES_LIMIT && !nr_native_dlls && !is_win9x && report (R_ASK, MB_YESNO, "Do you want to submit the test results?") == IDYES) + { if (!send_file (submiturl, logname) && !DeleteFileA(logname)) report (R_WARNING, "Can't remove logfile: %u", GetLastError()); - } else run_tests (logname, outdir); - report (R_STATUS, "Finished - %u failures", failures); + else + failures = 0; /* return success */ + } + } + else + { + run_tests (logname, outdir); + report (R_STATUS, "Finished - %u failures", failures); + } if (prev_crash_dialog) restore_crash_dialog( prev_crash_dialog ); } if (poweroff)