Skip to content

Commit 703e9cf

Browse files
committed
Skip some tests under LuaJIT 2.0
1 parent d7985d1 commit 703e9cf

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

test/lib/contents.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,5 +147,9 @@ do --- bit +bit
147147
end
148148

149149
do --- ffi +ffi
150-
check(require"ffi", "C:abi:alignof:arch:cast:cdef:copy:errno:fill:gc:istype:load:metatype:new:offsetof:os:sizeof:string:typeinfo:typeof")
150+
check(require"ffi", "C:abi:alignof:arch:cast:cdef:copy:errno:fill:gc:istype:load:metatype:new:offsetof:os:sizeof:string:typeof", "typeinfo")
151+
end
152+
153+
do --- ffi 2.1 +fii +luajit>=2.1
154+
assert(require"ffi".typeinfo)
151155
end

test/lib/ffi/index

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
bit64.lua +bit
1+
bit64.lua +luajit>=2.1
22
copy_fill.lua
33
err.lua
44
istype.lua

test/opt/fold/kfold.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ do --- sqrt exp log trig
7676
for i=1,100 do local a=23; y=math.tan(a) end assert(y==math.tan(23))
7777
end
7878

79-
do --- exp
79+
do --- exp -luajit==2.0
8080
assert((10^-2 - 0.01) == 0)
8181
end

0 commit comments

Comments
 (0)