Output "SYSREG_ROSAUTOTEST_FAILURE" for sysreg2 in case of a failure inside rosautotest
authorColin Finck <colin@reactos.org>
Tue, 24 Mar 2009 20:49:04 +0000 (20:49 +0000)
committerColin Finck <colin@reactos.org>
Tue, 24 Mar 2009 20:49:04 +0000 (20:49 +0000)
svn path=/trunk/; revision=40211

rostests/rosautotest/main.cpp

index 6b54ac8..5fb5dd4 100644 (file)
@@ -59,7 +59,7 @@ wmain(int argc, wchar_t* argv[])
         /* Run the tests */
         WineTest.Run();
 
         /* Run the tests */
         WineTest.Run();
 
-        /* For sysreg */
+        /* For sysreg2 */
         DbgPrint("SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
 
         ReturnValue = 0;
         DbgPrint("SYSREG_CHECKPOINT:THIRDBOOT_COMPLETE\n");
 
         ReturnValue = 0;
@@ -84,6 +84,10 @@ wmain(int argc, wchar_t* argv[])
         StringOut(ss.str());
     }
 
         StringOut(ss.str());
     }
 
+    /* For sysreg2 to notice if rosautotest itself failed */
+    if(ReturnValue == 1)
+        DbgPrint("SYSREG_ROSAUTOTEST_FAILURE\n");
+
     /* Shut down the system if requested, also in case of an exception above */
     if(Configuration.DoShutdown() && !ShutdownSystem())
         ReturnValue = 1;
     /* Shut down the system if requested, also in case of an exception above */
     if(Configuration.DoShutdown() && !ShutdownSystem())
         ReturnValue = 1;