SunSpider/string-tagcloud should be more lenient in validating its results, since...
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Apr 2013 20:11:25 +0000 (20:11 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 20 Apr 2013 20:11:25 +0000 (20:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=114895

Reviewed by Michael Saboff.

* tests/sunspider-1.0/string-tagcloud.js:

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

PerformanceTests/SunSpider/ChangeLog
PerformanceTests/SunSpider/tests/sunspider-1.0/string-tagcloud.js

index 2158daf8b7f88ccac82fe3b1f7c884400a526120..feed203ea7050453d2a48d18b54a00cd1e5fa315 100644 (file)
@@ -1,3 +1,12 @@
+2013-04-19  Filip Pizlo  <fpizlo@apple.com>
+
+        SunSpider/string-tagcloud should be more lenient in validating its results, since they depend on Math.log, which isn't formally specified
+        https://bugs.webkit.org/show_bug.cgi?id=114895
+
+        Reviewed by Michael Saboff.
+
+        * tests/sunspider-1.0/string-tagcloud.js:
+
 2013-04-18  Filip Pizlo  <fpizlo@apple.com>
 
         Whenever it is cheap and non-invasive, SunSpider tests should validate their results to ensure that the browser runs them correctly
index 268240074d1a12d833c109b385f8adfed835487c..faea66acf35715163f39877c93ad655544fd2bce 100644 (file)
@@ -263,9 +263,9 @@ function makeTagCloud(tagInfo)
 
 var tagcloud = makeTagCloud(tagInfo);
 
-var expectedLength = 315241;
+var expectedMinLength = 315000;
 
-if (tagcloud.length != expectedLength)
-    throw "ERROR: bad result: expected length " + expectedLength + " but got " + tagcloud.length;
+if (tagcloud.length < expectedMinLength)
+    throw "ERROR: bad result: expected length at least " + expectedMinLength + " but got " + tagcloud.length;
 
 tagInfo = null;