summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ffi/builder.lua4
-rw-r--r--test/ffi/cdef.lua4
-rw-r--r--test/ffi/init.lua2
-rw-r--r--test/ffi/parser.lua4
4 files changed, 7 insertions, 7 deletions
diff --git a/test/ffi/builder.lua b/test/ffi/builder.lua
index 0730abcf..47e39db3 100644
--- a/test/ffi/builder.lua
+++ b/test/ffi/builder.lua
@@ -1,4 +1,4 @@
-local luajit = require 'LuaJIT'
+local ffi = require 'plugins.ffi'
local util = require 'utility'
rawset(_G, 'TEST', true)
@@ -34,7 +34,7 @@ end
function TEST(wanted)
wanted = removeEmpty(splitLines(wanted))
return function (script)
- local lines = formatLines(luajit.compileCodes({ script }))
+ local lines = formatLines(ffi.compileCodes({ script }))
assert(util.equal(wanted, lines), util.dump(lines))
end
end
diff --git a/test/ffi/cdef.lua b/test/ffi/cdef.lua
index 03c6e743..cf3992d3 100644
--- a/test/ffi/cdef.lua
+++ b/test/ffi/cdef.lua
@@ -1,7 +1,7 @@
local files = require 'files'
-local code = require 'LuaJIT.searchCode'
-local cdefRerence = require 'LuaJIT.cdefRerence'
+local code = require 'plugins.ffi.searchCode'
+local cdefRerence = require 'plugins.ffi.cdefRerence'
rawset(_G, 'TEST', true)
diff --git a/test/ffi/init.lua b/test/ffi/init.lua
index 88b50523..d632b753 100644
--- a/test/ffi/init.lua
+++ b/test/ffi/init.lua
@@ -11,7 +11,7 @@ template['Lua.runtime.version'].default = 'LuaJIT'
---@async
local function TestBuilder()
- local builder = require 'LuaJIT'.initBuilder()
+ local builder = require 'plugins.ffi'.initBuilder()
files.setText(TESTURI, [[
local ffi = require 'ffi'
ffi.cdef 'void test();'
diff --git a/test/ffi/parser.lua b/test/ffi/parser.lua
index cf55e1e0..983b64c3 100644
--- a/test/ffi/parser.lua
+++ b/test/ffi/parser.lua
@@ -1,8 +1,8 @@
local utility = require 'utility'
-local cdriver = require 'LuaJIT.c-parser.cdriver'
+local cdriver = require 'plugins.ffi.c-parser.cdriver'
rawset(_G, 'TEST', true)
-local ctypes = require 'LuaJIT.c-parser.ctypes'
+local ctypes = require 'plugins.ffi.c-parser.ctypes'
ctypes.TESTMODE = true
function TEST(wanted, full)