mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
TestHarness.h should give errors with TEST-UNEXPECTED-FAIL. (Bug 477512) r=jwalden
This commit is contained in:
parent
e6253b557d
commit
018be96174
@ -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