mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 904227 - Print ? if we don't have a test object. r=bjacob
--HG-- extra : rebase_source : cc1571123f7414f7a64a620aeebd1ce4b5002a9e
This commit is contained in:
parent
df14c5d1d1
commit
bc3440e941
@ -44,15 +44,16 @@ public:
|
||||
virtual void OnTestPartResult(const TestPartResult& aTestPartResult) MOZ_OVERRIDE {
|
||||
printf("TEST-%s | %s.%s | %s @ %s:%i\n",
|
||||
!aTestPartResult.failed() ? "PASS" : "UNEXPECTED-FAIL",
|
||||
mTestInfo->test_case_name(), mTestInfo->name(),
|
||||
mTestInfo ? mTestInfo->test_case_name() : "?", mTestInfo ? mTestInfo->name() : "?",
|
||||
aTestPartResult.summary(),
|
||||
aTestPartResult.file_name(), aTestPartResult.line_number());
|
||||
}
|
||||
virtual void OnTestEnd(const TestInfo& aTestInfo) MOZ_OVERRIDE {
|
||||
printf("TEST-%s | %s.%s | test completed (time: %llims)\n",
|
||||
mTestInfo->result()->Passed() ? "PASS": "UNEXPECTED-FAIL",
|
||||
mTestInfo->test_case_name(), mTestInfo->name(),
|
||||
mTestInfo->result()->elapsed_time());
|
||||
aTestInfo.result()->Passed() ? "PASS": "UNEXPECTED-FAIL",
|
||||
aTestInfo.test_case_name(), aTestInfo.name(),
|
||||
aTestInfo.result()->elapsed_time());
|
||||
MOZ_ASSERT(&aTestInfo == mTestInfo);
|
||||
mTestInfo = nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user