diff options
-rw-r--r-- | tests/PathOpsExtendedTest.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp index c3162abcc9..28830ed702 100644 --- a/tests/PathOpsExtendedTest.cpp +++ b/tests/PathOpsExtendedTest.cpp @@ -447,8 +447,9 @@ static int comparePaths(skiatest::Reporter* reporter, const SkPath& one, const S return errors2x2 > MAX_ERRORS ? errors2x2 : 0; } -static int testNumber; -static const char* testName; +// Default values for when reporter->verbose() is false. +static int testNumber = 1; +static const char* testName = "pathOpTest"; static void writeTestName(const char* nameSuffix, SkMemoryWStream& outFile) { outFile.writeText(testName); @@ -655,9 +656,6 @@ int initializeTests(skiatest::Reporter* reporter, const char* test) { testNumber = atoi(numLoc) + 1; } } - } else { - testName = "pathOpTest"; - testNumber = 1; } return reporter->allowThreaded() ? SkThreadPool::kThreadPerCore : 1; } |