Index: dm/DMTestTask.cpp |
diff --git a/dm/DMTestTask.cpp b/dm/DMTestTask.cpp |
index ad0c3fb4f3d8cf3fbf0e45cf896f4f9ce55d604b..366087c351be1a7025f86cea69cbb34495f13a82 100644 |
--- a/dm/DMTestTask.cpp |
+++ b/dm/DMTestTask.cpp |
@@ -35,7 +35,10 @@ void CpuTestTask::draw() { |
fTest->setReporter(&fTestReporter); |
fTest->run(); |
if (!fTest->passed()) { |
- this->fail(fTestReporter.failure()); |
+ const SkTArray<SkString>& failures = fTestReporter.failures(); |
+ for (int i = 0; i < failures.count(); i++) { |
+ this->fail(failures[i].c_str()); |
+ } |
} |
} |
@@ -44,7 +47,10 @@ void GpuTestTask::draw(GrContextFactory* grFactory) { |
fTest->setReporter(&fTestReporter); |
fTest->run(); |
if (!fTest->passed()) { |
- this->fail(fTestReporter.failure()); |
+ const SkTArray<SkString>& failures = fTestReporter.failures(); |
+ for (int i = 0; i < failures.count(); i++) { |
+ this->fail(failures[i].c_str()); |
+ } |
} |
} |