A watchdog tests is failing on Windows.
authormark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Aug 2015 17:41:43 +0000 (17:41 +0000)
committermark.lam@apple.com <mark.lam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 20 Aug 2015 17:41:43 +0000 (17:41 +0000)
https://bugs.webkit.org/show_bug.cgi?id=148228

Reviewed by Brent Fulgham.

The test just needed a little more time because Windows' timer resolution is low.
After increasing the test deadlines, the test started passing.

* API/tests/ExecutionTimeLimitTest.cpp:
(testExecutionTimeLimit):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188689 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/JavaScriptCore/API/tests/ExecutionTimeLimitTest.cpp
Source/JavaScriptCore/ChangeLog

index 0af5275..1451711 100644 (file)
@@ -264,8 +264,8 @@ int testExecutionTimeLimit()
         JSContextGroupSetExecutionTimeLimit(contextGroup, timeLimit, extendTerminateCallback, 0);
         {
             unsigned timeBeforeExtendedDeadline = 200 + tierAdjustmentMillis;
-            unsigned timeAfterExtendedDeadline = 350 + tierAdjustmentMillis;
-            unsigned maxBusyLoopTime = 500 + tierAdjustmentMillis;
+            unsigned timeAfterExtendedDeadline = 400 + tierAdjustmentMillis;
+            unsigned maxBusyLoopTime = 600 + tierAdjustmentMillis;
 
             StringBuilder scriptBuilder;
             scriptBuilder.append("function foo() { var startTime = currentCPUTime(); while (true) { for (var i = 0; i < 1000; i++); if (currentCPUTime() - startTime > ");
index 3aa4cdd..7adfe7d 100644 (file)
@@ -1,5 +1,18 @@
 2015-08-20  Mark Lam  <mark.lam@apple.com>
 
+        A watchdog tests is failing on Windows.
+        https://bugs.webkit.org/show_bug.cgi?id=148228
+
+        Reviewed by Brent Fulgham.
+
+        The test just needed a little more time because Windows' timer resolution is low.
+        After increasing the test deadlines, the test started passing.
+
+        * API/tests/ExecutionTimeLimitTest.cpp:
+        (testExecutionTimeLimit):
+
+2015-08-20  Mark Lam  <mark.lam@apple.com>
+
         Fixed some warnings on Windows.
         https://bugs.webkit.org/show_bug.cgi?id=148224