void AddFailure (const Failure & failure) { char writeBuffer[1024]; sprintf( writeBuffer, "%d,%s,%s", failure.LineNumber(), failure.Filename(), failure.Condition() ); DWORD dwWrite; if( WriteFile( m_WritePipe, writeBuffer, 1024, &dwWrite, NULL ) == false || dwWrite != 1024 ) exit(-1); }
virtual void AddFailure (const Failure & failure) { lastCondition = failure.Condition(); }