mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
[ROSAUTOTEST] Fix and improve some log handling (#1531)
* wmain(): Use endl instead of '\n', for 'System uptime' * wmain(): Output "[ROSAUTOTEST] " in two cases: 'System uptime' and all CSimpleException.
This commit is contained in:
parent
535b8dda8d
commit
627f0242ad
1 changed files with 8 additions and 3 deletions
|
@ -59,8 +59,10 @@ wmain(int argc, wchar_t* argv[])
|
||||||
Configuration.GetSystemInformation();
|
Configuration.GetSystemInformation();
|
||||||
Configuration.GetConfigurationFromFile();
|
Configuration.GetConfigurationFromFile();
|
||||||
|
|
||||||
ss << "\n\nSystem uptime " << setprecision(2) << fixed ;
|
ss << endl
|
||||||
ss << ((float)GetTickCount()/1000) << " seconds\n";
|
<< endl
|
||||||
|
<< "[ROSAUTOTEST] System uptime " << setprecision(2) << fixed;
|
||||||
|
ss << ((float)GetTickCount()/1000) << " seconds" << endl;
|
||||||
StringOut(ss.str());
|
StringOut(ss.str());
|
||||||
|
|
||||||
/* Report tests startup */
|
/* Report tests startup */
|
||||||
|
@ -89,8 +91,11 @@ wmain(int argc, wchar_t* argv[])
|
||||||
}
|
}
|
||||||
catch(CSimpleException& e)
|
catch(CSimpleException& e)
|
||||||
{
|
{
|
||||||
|
stringstream ss;
|
||||||
|
|
||||||
// e.GetMessage() must include ending '\n'.
|
// e.GetMessage() must include ending '\n'.
|
||||||
StringOut(e.GetMessage());
|
ss << "[ROSAUTOTEST] " << e.GetMessage();
|
||||||
|
StringOut(ss.str());
|
||||||
}
|
}
|
||||||
catch(CFatalException& e)
|
catch(CFatalException& e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue