Alexandre Julliard : winetest: Exit with error 3 when there are test failures.

Alexandre Julliard julliard at winehq.org
Tue Aug 16 15:59:47 CDT 2022


Module: wine
Branch: master
Commit: 5fabd968d4987c2b4d54787e77b9662a29f00b64
URL:    https://gitlab.winehq.org/wine/wine/-/commit/5fabd968d4987c2b4d54787e77b9662a29f00b64

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Aug 16 17:42:34 2022 +0200

winetest: Exit with error 3 when there are test failures.

---

 programs/winetest/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winetest/main.c b/programs/winetest/main.c
index 7caa20d862a..ff76eec6e64 100644
--- a/programs/winetest/main.c
+++ b/programs/winetest/main.c
@@ -1476,7 +1476,7 @@ int __cdecl main( int argc, char *argv[] )
         if (nb_filters && !exclude_tests)
         {
             run_tests( logname, outdir );
-            exit(0);
+            exit( failures ? 3 : 0 );
         }
 
         while (!tag) {
@@ -1534,5 +1534,5 @@ int __cdecl main( int argc, char *argv[] )
         }
         ExitWindowsEx(EWX_SHUTDOWN | EWX_POWEROFF | EWX_FORCEIFHUNG, SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER);
     }
-    exit (0);
+    exit( failures ? 3 : 0 );
 }




More information about the wine-cvs mailing list