From 2587f41f2667b2add97f75583b71ebb74bc48af1 Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Tue, 24 Jul 2018 12:40:10 -0400 Subject: handle failing pathop tests Some tests isolated from GrShapes_arcs do not fail gracefully, so make sure errors are properly handled. TBR=reed@google.com Bug: skia: Change-Id: Ia8c9903e64ef755ec11c398df3e5d258ca1f5f8b Reviewed-on: https://skia-review.googlesource.com/143112 Reviewed-by: Cary Clark Commit-Queue: Cary Clark Auto-Submit: Cary Clark --- tests/PathOpsExtendedTest.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests/PathOpsExtendedTest.h') diff --git a/tests/PathOpsExtendedTest.h b/tests/PathOpsExtendedTest.h index 9f8b0aeaac..5095a9d56f 100644 --- a/tests/PathOpsExtendedTest.h +++ b/tests/PathOpsExtendedTest.h @@ -38,15 +38,17 @@ extern bool testPathOpCheck(skiatest::Reporter* reporter, const SkPath& a, const const SkPathOp , const char* testName, bool checkFail); extern bool testPathOpFail(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, const SkPathOp, const char* testName); -extern bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, - const SkPath& b, const SkPathOp , const char* testName); +extern bool testPathOpFuzz(skiatest::Reporter* reporter, const SkPath& a, const SkPath& b, + const SkPathOp , const char* testName); extern bool testSimplify(SkPath& path, bool useXor, SkPath& out, PathOpsThreadState& state, const char* pathStr); extern bool testSimplify(skiatest::Reporter* reporter, const SkPath& path, const char* filename); extern bool testSimplifyCheck(skiatest::Reporter* reporter, const SkPath& path, const char* filename, bool checkFail); +extern bool testSimplifyFail(skiatest::Reporter* reporter, const SkPath& path, + const char* filename); extern bool testSimplifyFuzz(skiatest::Reporter* reporter, const SkPath& path, - const char* filename); + const char* filename); void initializeTests(skiatest::Reporter* reporter, const char* testName); -- cgit v1.2.3