Index: tests/FlateTest.cpp |
diff --git a/tests/FlateTest.cpp b/tests/FlateTest.cpp |
index 3e8e5837e104d4cea58e2f1f40a959df1113f17d..75c6f3f9c66b70b6a5093360e573f70782f84f51 100644 |
--- a/tests/FlateTest.cpp |
+++ b/tests/FlateTest.cpp |
@@ -89,6 +89,8 @@ static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream, |
dataSize) == 0); |
} |
+ if (compressedSize < 1) { return; } |
+ |
double compressionRatio = static_cast<double>(dataSize) / compressedSize; |
// Assert that some compression took place. |
REPORTER_ASSERT(reporter, compressionRatio > 1.2); |