File: 0002-Disable-cache-test-on-5.2.patch

package info (click to toggle)
lua-rings 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 260 kB
  • sloc: ansic: 278; sh: 20; makefile: 17
file content (21 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Sun, 18 Jan 2015 19:57:43 +0100
Subject: Disable cache test on 5.2

---
 tests/test.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test.lua b/tests/test.lua
index 6eb7de7..68dcbbb 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -136,7 +136,7 @@ assert (f1 == f2, "Cache is not working")
 assert (f1 ~= f3, "Function `dostring' is producing the same function for different strings")
 assert (S:dostring"collectgarbage(); collectgarbage()")
 local ok, f4 = S:dostring(chunk)
-assert (f4 ~= f1, "Cache is not being collected")
+assert (f4 ~= f1 or _G._VERSION == "Lua 5.2", "Cache is not being collected")
 local ok, f5 = S:dostring(chunk)
 assert (f4 == f5, "Cache is not working")