Bug 619623 - reorder the parts of the error messages so tbpl can spot the filename, r=sdwilsh, a=test

This commit is contained in:
Phil Ringnalda 2010-12-18 19:30:46 -08:00
Родитель f5927fd63b
Коммит 7146252c8d
2 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -61,7 +61,7 @@ static int gPassedTests = 0;
if (aCondition) { \
gPassedTests++; \
} else { \
fail("Expected true, got false at %s:%d!", __FILE__, __LINE__); \
fail("%s | Expected true, got false at line %d", __FILE__, __LINE__); \
} \
PR_END_MACRO
@ -71,7 +71,7 @@ static int gPassedTests = 0;
if (!aCondition) { \
gPassedTests++; \
} else { \
fail("Expected false, got true at %s:%d!", __FILE__, __LINE__); \
fail("%s | Expected false, got true at line %d", __FILE__, __LINE__); \
} \
PR_END_MACRO
@ -93,8 +93,8 @@ static int gPassedTests = 0;
gPassedTests++; \
} else { \
std::ostringstream temp; \
temp << "Expected '" << aExpected << "', got '" << aActual <<"' at "; \
temp << __FILE__ << ":" << __LINE__ << "!"; \
temp << __FILE__ << " | Expected '" << aExpected << "', got '"; \
temp << aActual <<"' at line " << __LINE__; \
fail(temp.str().c_str()); \
} \
PR_END_MACRO

Просмотреть файл

@ -62,7 +62,7 @@ static size_t gPassedTests = 0;
if (aCondition) { \
gPassedTests++; \
} else { \
fail("Expected true, got false at %s:%d!", __FILE__, __LINE__); \
fail("%s | Expected true, got false at line %d", __FILE__, __LINE__); \
} \
PR_END_MACRO
@ -72,7 +72,7 @@ static size_t gPassedTests = 0;
if (!aCondition) { \
gPassedTests++; \
} else { \
fail("Expected false, got true at %s:%d!", __FILE__, __LINE__); \
fail("%s | Expected false, got true at line %d", __FILE__, __LINE__); \
} \
PR_END_MACRO
@ -94,8 +94,8 @@ static size_t gPassedTests = 0;
gPassedTests++; \
} else { \
std::ostringstream temp; \
temp << "Expected '" << aExpected << "', got '" << aActual <<"' at "; \
temp << __FILE__ << ":" << __LINE__ << "!"; \
temp << __FILE__ << " | Expected '" << aExpected << "', got '"; \
temp << aActual <<"' at line " << __LINE__; \
fail(temp.str().c_str()); \
} \
PR_END_MACRO