From f778eb2f51572d57a75e1a9cec25d5495f6662e1 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Tue, 11 Jul 2017 12:27:15 -0400 Subject: check for default typeface for new test Bug: skia: Change-Id: I5e52b3259acf73875640ec172d4ff8030975b611 Reviewed-on: https://skia-review.googlesource.com/22262 Reviewed-by: Ethan Nicholas Reviewed-by: Florin Malita Commit-Queue: Mike Reed --- tests/TextBlobTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/TextBlobTest.cpp') diff --git a/tests/TextBlobTest.cpp b/tests/TextBlobTest.cpp index 238d7340b8..cec7028056 100644 --- a/tests/TextBlobTest.cpp +++ b/tests/TextBlobTest.cpp @@ -421,6 +421,12 @@ static sk_sp render(const SkTextBlob* blob) { * Then draw the new instance and assert it draws the same as the original. */ DEF_TEST(TextBlob_serialize, reporter) { + // test requires at least the default font + if (!SkTypeface::MakeDefault()) { + SkDebugf("TextBlob_serialize: missing default typeface\n"); + return; + } + SkTextBlobBuilder builder; sk_sp tf0; -- cgit v1.2.3