Skip to content

Commit

Permalink
Skip some tests under LuaJIT 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
corsix committed May 6, 2016
1 parent d7985d1 commit 703e9cf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion test/lib/contents.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,9 @@ do --- bit +bit
end

do --- ffi +ffi
check(require"ffi", "C:abi:alignof:arch:cast:cdef:copy:errno:fill:gc:istype:load:metatype:new:offsetof:os:sizeof:string:typeinfo:typeof")
check(require"ffi", "C:abi:alignof:arch:cast:cdef:copy:errno:fill:gc:istype:load:metatype:new:offsetof:os:sizeof:string:typeof", "typeinfo")
end

do --- ffi 2.1 +fii +luajit>=2.1
assert(require"ffi".typeinfo)
end
2 changes: 1 addition & 1 deletion test/lib/ffi/index
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
bit64.lua +bit
bit64.lua +luajit>=2.1
copy_fill.lua
err.lua
istype.lua
Expand Down
2 changes: 1 addition & 1 deletion test/opt/fold/kfold.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,6 @@ do --- sqrt exp log trig
for i=1,100 do local a=23; y=math.tan(a) end assert(y==math.tan(23))
end

do --- exp
do --- exp -luajit==2.0
assert((10^-2 - 0.01) == 0)
end

0 comments on commit 703e9cf

Please sign in to comment.