mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-27 00:28:49 +03:00
commit
f250db3376
1 changed files with 3 additions and 3 deletions
|
|
@ -12,14 +12,14 @@ namespace UnitTest {
|
|||
|
||||
void TestReporterStdout::ReportFailure(TestDetails const& details, char const* failure)
|
||||
{
|
||||
using namespace std;
|
||||
#if defined(__APPLE__) || defined(__GNUG__)
|
||||
char const* const errorFormat = "%s:%d:%d: error: Failure in %s: %s\n";
|
||||
fprintf(stderr, errorFormat, details.filename, details.lineNumber, 1, details.testName, failure);
|
||||
#else
|
||||
char const* const errorFormat = "%s(%d): error: Failure in %s: %s\n";
|
||||
fprintf(stderr, errorFormat, details.filename, details.lineNumber, details.testName, failure);
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
fprintf(stderr, errorFormat, details.filename, details.lineNumber, 1, details.testName, failure);
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportTestStart(TestDetails const& /*test*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue