diff options
author | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 18:47:37 +0000 |
---|---|---|
committer | caryclark@google.com <caryclark@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-04-18 18:47:37 +0000 |
commit | 16cfe40276bfb0a4d98c9ad995b8e5b134a49b19 (patch) | |
tree | 5cd7dcd8e011fcda54c746ac313c4d89db134f75 /tests/PathOpsSimplifyDegenerateThreadedTest.cpp | |
parent | 9d1cff124c14e550889a5755ffa5e6537af7c8c8 (diff) |
allow tests to optionally use multiple threads
modify threaded path ops tests to check
Background: this CL came out of a conversation with Eric where I learned that 10s of machines host 100s of bots. Since the bot hosting tests may be shared with many other tasks, it seems unwise for path ops to launch multiple test threads.
The change here is to make launching multiple threads "opt-in" and by default, bots can run path ops in a single thread.
Review URL: https://codereview.chromium.org/14002007
git-svn-id: http://skia.googlecode.com/svn/trunk@8750 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/PathOpsSimplifyDegenerateThreadedTest.cpp')
-rwxr-xr-x | tests/PathOpsSimplifyDegenerateThreadedTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PathOpsSimplifyDegenerateThreadedTest.cpp b/tests/PathOpsSimplifyDegenerateThreadedTest.cpp index 1c1f9cad62..22997e7a9c 100755 --- a/tests/PathOpsSimplifyDegenerateThreadedTest.cpp +++ b/tests/PathOpsSimplifyDegenerateThreadedTest.cpp @@ -61,7 +61,7 @@ static void testSimplifyDegeneratesMain(PathOpsThreadState* data) { } static void PathOpsSimplifyDegeneratesThreadedTest(skiatest::Reporter* reporter) { - int threadCount = initializeTests("testDegenerates"); + int threadCount = initializeTests(reporter, "testDegenerates"); PathOpsThreadedTestRunner testRunner(reporter, threadCount); for (int a = 0; a < 16; ++a) { int ax = a & 0x03; |