TestHarness.h should give errors with TEST-UNEXPECTED-FAIL. (Bug 477512) r=jwalden

This commit is contained in:
L. David Baron 2009-02-10 14:05:28 -08:00
parent 2141d9bef4
commit a97d43b7f7
2 changed files with 4 additions and 4 deletions

View File

@ -55,14 +55,14 @@
/**
* Prints the given failure message and arguments using printf, prepending
* "FAIL " for the benefit of the test harness and appending "\n" to eliminate
* having to type it at each call site.
* "TEST-UNEXPECTED-FAIL " for the benefit of the test harness and
* appending "\n" to eliminate having to type it at each call site.
*/
void fail(const char* msg, ...)
{
va_list ap;
printf("FAIL ");
printf("TEST-UNEXPECTED-FAIL | ");
va_start(ap, msg);
vprintf(msg, ap);

View File

@ -204,7 +204,7 @@ nsresult TestBackwardsAllocator()
SEGMENT_SIZE, SEGMENT_COUNT, allocator);
if (NS_FAILED(rv))
{
printf("FAIL TP_NewPipe2 failed: %x\n", rv);
fail("TP_NewPipe2 failed: %x", rv);
return rv;
}