Title: [159961] trunk/Tools
Revision
159961
Author
[email protected]
Date
2013-12-02 14:21:41 -0800 (Mon, 02 Dec 2013)

Log Message

[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.

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (159960 => 159961)


--- trunk/Tools/ChangeLog	2013-12-02 21:53:17 UTC (rev 159960)
+++ trunk/Tools/ChangeLog	2013-12-02 22:21:41 UTC (rev 159961)
@@ -1,3 +1,13 @@
+2013-12-02  Brent Fulgham  <[email protected]>
+
+        [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  <[email protected]>
 
         Build fix after r159955

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (159960 => 159961)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2013-12-02 21:53:17 UTC (rev 159960)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2013-12-02 22:21:41 UTC (rev 159961)
@@ -72,7 +72,12 @@
     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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to