[ROSAUTOTEST]

Report the start and end of the tests in the Application event log.
This gives data for the advapi32:eventlog tests.


svn path=/trunk/; revision=63963
This commit is contained in:
Sylvain Petreolle 2014-08-27 20:19:43 +00:00
parent bb1bbe0f7c
commit 1f48cab02e
6 changed files with 173 additions and 2 deletions

View file

@ -61,6 +61,18 @@ wmain(int argc, wchar_t* argv[])
ss << "\n\nSystem uptime " << setprecision(2) << fixed ;
ss << ((float)GetTickCount()/1000) << " seconds\n";
StringOut(ss.str());
/* Report tests startup */
InitLogs();
ReportEventW(hLog,
EVENTLOG_INFORMATION_TYPE,
0,
MSG_TESTS_STARTED,
NULL,
0,
0,
NULL,
NULL);
/* Run the tests */
WineTest.Run();
@ -94,6 +106,18 @@ wmain(int argc, wchar_t* argv[])
if(ReturnValue == 1)
DbgPrint("SYSREG_ROSAUTOTEST_FAILURE\n");
/* Report successful end of tests */
ReportEventW(hLog,
EVENTLOG_SUCCESS,
0,
MSG_TESTS_SUCCESSFUL,
NULL,
0,
0,
NULL,
NULL);
FreeLogs();
/* Shut down the system if requested, also in case of an exception above */
if(Configuration.DoShutdown() && !ShutdownSystem())
ReturnValue = 1;