diff options
Diffstat (limited to 'tests/PointTest.cpp')
-rw-r--r-- | tests/PointTest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/PointTest.cpp b/tests/PointTest.cpp index b909762f07..f8a39630f6 100644 --- a/tests/PointTest.cpp +++ b/tests/PointTest.cpp @@ -68,7 +68,11 @@ static void test_overflow(skiatest::Reporter* reporter) { SkPoint pt = { bigFloat, bigFloat }; SkScalar length = pt.length(); - REPORTER_ASSERT(reporter, !SkScalarIsFinite(length)); + // expect this to be non-finite, but dump the results if not. + if (SkScalarIsFinite(length)) { + SkDebugf("length(%g, %g) == %g\n", pt.fX, pt.fY, length); + REPORTER_ASSERT(reporter, !SkScalarIsFinite(length)); + } // this should succeed, even though we can't represent length REPORTER_ASSERT(reporter, pt.setLength(SK_Scalar1)); |