mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
TestHarness.h should give errors with TEST-UNEXPECTED-FAIL. (Bug 477512) r=jwalden
This commit is contained in:
parent
2141d9bef4
commit
a97d43b7f7
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user