aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/skia_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/skia_test.cpp')
-rw-r--r--tests/skia_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index dc5ae97c3f..38237e4c02 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -30,6 +30,7 @@ DEFINE_bool2(extendedTest, x, false, "run extended tests for pathOps.");
// need to explicitly declare this, or we get some weird infinite loop llist
template TestRegistry* TestRegistry::gHead;
+void (*gVerboseFinalize)() = nullptr;
// The threads report back to this object when they are done.
class Status {
@@ -214,6 +215,9 @@ int test_main() {
"\nFinished %d tests, %d failures, %d skipped. "
"(%d internal tests)",
toRun, status.failCount(), skipCount, status.testCount());
+ if (gVerboseFinalize) {
+ (*gVerboseFinalize)();
+ }
}
SkDebugf("\n");