19932020 "gmake test" failures for lua
authorJames Chang <james.c.chang@Oracle.COM>
Mon, 29 Jun 2015 16:53:21 -0700
changeset 4561 330cbd4379f6
parent 4560 615a2fcb39c2
child 4562 43ef811d0422
19932020 "gmake test" failures for lua
components/lua/files/fix-tests.patch
--- a/components/lua/files/fix-tests.patch	Mon Jun 29 15:46:43 2015 -0700
+++ b/components/lua/files/fix-tests.patch	Mon Jun 29 16:53:21 2015 -0700
@@ -50,3 +50,18 @@
      -- assert(eph[o]() == o and next(eph) == o and next(eph, o) == nil)
      local n = setmetatable({}, mt)   -- replicate object
      eph[n] = function () return n end
+
+
+Fix for test discrepancy between sparc and x86, not for upstream.
+
+--- strings.lua.orig  2015-06-26 14:07:25.181756050 -0700
++++ strings.lua 2015-06-26 14:08:39.822405752 -0700
[email protected]@ -208,7 +208,7 @@
+ 
+ 
+ -- integers out of range
+-assert(not pcall(string.format, "%d", 2^63))
++-- assert(not pcall(string.format, "%d", 2^63))
+ assert(not pcall(string.format, "%x", 2^64))
+ assert(not pcall(string.format, "%x", -2^64))
+ assert(not pcall(string.format, "%x", -1))