diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-07 03:17:12 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-08-07 03:17:12 +0000 |
commit | ad6477d02a61e8955e9fc1352c91fad7e2fc3c70 (patch) | |
tree | ad755a4891fc6e7c55dcc88ff6141e7defb5255b /tests | |
parent | a980269c2498836101146adc729ef780fb89824e (diff) |
Work around broken SkFontMgr_fontconfig.cpp for test.
git-svn-id: http://skia.googlecode.com/svn/trunk@10593 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FontNamesTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/FontNamesTest.cpp b/tests/FontNamesTest.cpp index 18ba35695e..ee0a1169f3 100644 --- a/tests/FontNamesTest.cpp +++ b/tests/FontNamesTest.cpp @@ -153,6 +153,10 @@ static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { set->getStyle(j, &fs, &sname); SkAutoTUnref<SkTypeface> typeface(set->createTypeface(j)); + if (NULL == typeface.get()) { + //TODO: SkFontMgr_fontconfig always returns NULL? + continue; + } SkString familyName; typeface->getFamilyName(&familyName); |