diff options
author | Cary Clark <caryclark@skia.org> | 2018-03-09 07:38:47 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-09 14:54:30 +0000 |
commit | 74b429086122e19e82fe090fc999120ed48d3532 (patch) | |
tree | 0e9ee4be41ba35dafbd82c42ac7d40213de81250 /tests/PathOpsCubicConicIntersectionTest.cpp | |
parent | b537879c7214efd87840c9a7267ab3b3facda873 (diff) |
some fuzzer fixes
should fix three or four of the PathOp asserts
triggered by the fuzzer tool.
R=kjlubick@google.com
Bug: skia:
Change-Id: I470895addf1e922da6a7c41d44d54eca92e68fb6
Reviewed-on: https://skia-review.googlesource.com/113163
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Cary Clark <caryclark@skia.org>
Diffstat (limited to 'tests/PathOpsCubicConicIntersectionTest.cpp')
-rw-r--r-- | tests/PathOpsCubicConicIntersectionTest.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/PathOpsCubicConicIntersectionTest.cpp b/tests/PathOpsCubicConicIntersectionTest.cpp index d7924634b2..ff4dec9864 100644 --- a/tests/PathOpsCubicConicIntersectionTest.cpp +++ b/tests/PathOpsCubicConicIntersectionTest.cpp @@ -15,6 +15,20 @@ static struct cubicConic { CubicPts cubic; ConicPts conic; } cubicConicTests[] = { +#if 0 +// FIXME: this triggers an assert in bool SkTSect::extractCoincident() at +// SkOPASSERT(oppStartT < oppEndT); +// Throwing an error here breaks one test, but only in release. +// More work to be done to figure this out. + {{{{2.1883804947719909e-05, 3.6366123822517693e-05 },
+ {2.9145950975362211e-05, 2.9117207304807380e-05 },
+ {2.9113532946212217e-05, 2.9173743314458989e-05 },
+ {0.00000000000000000, 5.8282588724978268e-05 }}},
+ {{{{0.00000000000000000, 5.8282581449020654e-05 },
+ {0.00000000000000000, 5.8282563259126619e-05 },
+ {5.8282588724978268e-05, 0.00000000000000000 }}}, 53684.6563f}}, +#endif
+ {{{{188.60000610351562, 2041.5999755859375}, {188.60000610351562, 2065.39990234375}, {208, 2084.800048828125}, {231.80000305175781, 2084.800048828125}}}, {{{{231.80000305175781, 2084.800048828125}, {188.60000610351562, 2084.800048828125}, @@ -73,5 +87,5 @@ DEF_TEST(PathOpsCubicConicIntersection, reporter) { } DEF_TEST(PathOpsCubicConicIntersectionOneOff, reporter) { - cubicConicIntersection(reporter, 1); + cubicConicIntersection(reporter, 0); } |