stringstream ss, ssFinish;
DWORD StartTime;
float TotalTime;
- string tailString;
CPipe Pipe;
char Buffer[1024];
{
/* Output text through StringOut, even while the test is still running */
Buffer[BytesAvailable] = 0;
- tailString = StringOut(tailString.append(string(Buffer)), false);
+ StringOut(string(Buffer));
if(Configuration.DoSubmit())
TestInfo->Log += Buffer;
}
catch(CTestException& e)
{
- if(!tailString.empty())
- StringOut(tailString);
- tailString.clear();
StringOut(e.GetMessage());
TestInfo->Log += e.GetMessage();
}
- /* Print what's left */
- if(!tailString.empty())
- StringOut(tailString);
-
TotalTime = ((float)GetTickCount() - StartTime)/1000;
ssFinish << "Test " << TestInfo->Test << " completed in ";
ssFinish << setprecision(2) << fixed << TotalTime << " seconds." << endl;