Commit 2ce50f7e authored by bfulgham@apple.com's avatar bfulgham@apple.com

[Win] Port run-jsc-stress-tests

https://bugs.webkit.org/show_bug.cgi?id=124801

Reviewed by Filip Pizlo.

* Scripts/run-jsc-stress-tests: Gracefully handle lack of sysctl
command on Windows so that stress tests can run.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159961 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent eb54eea7
2013-12-02 Brent Fulgham <bfulgham@apple.com>
[Win] Port run-jsc-stress-tests
https://bugs.webkit.org/show_bug.cgi?id=124801
Reviewed by Filip Pizlo.
* Scripts/run-jsc-stress-tests: Gracefully handle lack of sysctl
command on Windows so that stress tests can run.
2013-12-02 Mark Hahnenberg <mhahnenberg@apple.com>
Build fix after r159955
......
......@@ -72,7 +72,12 @@ def mysys(*cmd)
raise "Command failed: #{$?.inspect}" unless system(*cmd)
end
$numProcessors = `sysctl -n hw.activecpu`.to_i
begin
$numProcessors = `sysctl -n hw.activecpu`.to_i
rescue
$numProcessors = 0
end
if $numProcessors == 0
$numProcessors = `nproc --all 2>/dev/null`.to_i
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment