# HG changeset patch # User James Chang # Date 1435622001 25200 # Node ID 330cbd4379f67256c47683d2b7f55453539221e8 # Parent 615a2fcb39c2893097e4776c28aba02c4242a9ab 19932020 "gmake test" failures for lua diff -r 615a2fcb39c2 -r 330cbd4379f6 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 +@@ -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))