diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-17 20:05:25 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-17 20:05:25 +0000 |
commit | 1809845d5a97f75add9e62cfb6df158fbbb2ca5e (patch) | |
tree | 668d1cba21214db5cee47c76a41e8b6623f51e57 /tools/heapcheck | |
parent | 232abbff9c28c2e023c8581a40d9771c3ec1acac (diff) | |
download | chromium_src-1809845d5a97f75add9e62cfb6df158fbbb2ca5e.zip chromium_src-1809845d5a97f75add9e62cfb6df158fbbb2ca5e.tar.gz chromium_src-1809845d5a97f75add9e62cfb6df158fbbb2ca5e.tar.bz2 |
Valgrind/Heapcheck: Do not try to run layout tests with 0 jobs.
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/23868039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223662 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/heapcheck')
-rwxr-xr-x | tools/heapcheck/chrome_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/heapcheck/chrome_tests.py b/tools/heapcheck/chrome_tests.py index d5ba2e94..444df8e 100755 --- a/tools/heapcheck/chrome_tests.py +++ b/tools/heapcheck/chrome_tests.py @@ -379,7 +379,7 @@ class ChromeTests(object): # While Heapcheck is not memory bound like Valgrind for running layout tests # in parallel, it is still CPU bound. Many machines have hyper-threading # turned on, so the real number of cores is actually half. - jobs = int(multiprocessing.cpu_count() * 0.5) + jobs = max(1, int(multiprocessing.cpu_count() * 0.5)) script_cmd = ["python", script, "-v", "--run-singly", # run a separate DumpRenderTree for each test "--fully-parallel", |