mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
Introduce nvim namespace: Fix unit tests.
Point cimports to new locations.
This commit is contained in:
parent
762a8ad0f3
commit
74b9396043
@ -1,6 +1,6 @@
|
|||||||
{:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
|
{:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
|
||||||
|
|
||||||
garray = cimport './src/garray.h'
|
garray = cimport './src/nvim/garray.h'
|
||||||
|
|
||||||
-- handy constants
|
-- handy constants
|
||||||
NULL = ffi.cast 'void*', 0
|
NULL = ffi.cast 'void*', 0
|
||||||
|
@ -84,7 +84,7 @@ cimport = (...) ->
|
|||||||
cppimport = (path) ->
|
cppimport = (path) ->
|
||||||
return cimport Paths.test_include_path .. '/' .. path
|
return cimport Paths.test_include_path .. '/' .. path
|
||||||
|
|
||||||
cimport './src/types.h'
|
cimport './src/nvim/types.h'
|
||||||
|
|
||||||
-- take a pointer to a C-allocated string and return an interned
|
-- take a pointer to a C-allocated string and return an interned
|
||||||
-- version while also freeing the memory
|
-- version while also freeing the memory
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{:cimport, :internalize, :eq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
|
{:cimport, :internalize, :eq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
|
||||||
require 'lfs'
|
require 'lfs'
|
||||||
|
|
||||||
env = cimport './src/os/os.h'
|
env = cimport './src/nvim/os/os.h'
|
||||||
|
|
||||||
NULL = ffi.cast 'void*', 0
|
NULL = ffi.cast 'void*', 0
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
require 'lfs'
|
require 'lfs'
|
||||||
require 'bit'
|
require 'bit'
|
||||||
|
|
||||||
fs = cimport './src/os/os.h'
|
fs = cimport './src/nvim/os/os.h'
|
||||||
|
|
||||||
-- TODO(aktau): define these constants "better"
|
-- TODO(aktau): define these constants "better"
|
||||||
FAIL = 0
|
FAIL = 0
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{:cimport, :internalize, :eq, :ffi, :lib, :cstr} = require 'test.unit.helpers'
|
{:cimport, :internalize, :eq, :ffi, :lib, :cstr} = require 'test.unit.helpers'
|
||||||
|
|
||||||
users = cimport './src/os/os.h', 'unistd.h'
|
users = cimport './src/nvim/os/os.h', 'unistd.h'
|
||||||
|
|
||||||
NULL = ffi.cast 'void*', 0
|
NULL = ffi.cast 'void*', 0
|
||||||
OK = 1
|
OK = 1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
|
{:cimport, :internalize, :eq, :neq, :ffi, :lib, :cstr, :to_cstr} = require 'test.unit.helpers'
|
||||||
require 'lfs'
|
require 'lfs'
|
||||||
|
|
||||||
path = cimport './src/path.h'
|
path = cimport './src/nvim/path.h'
|
||||||
|
|
||||||
-- import constants parsed by ffi
|
-- import constants parsed by ffi
|
||||||
{:kEqualFiles, :kDifferentFiles, :kBothFilesMissing, :kOneFileMissing, :kEqualFileNames} = path
|
{:kEqualFiles, :kDifferentFiles, :kBothFilesMissing, :kOneFileMissing, :kEqualFileNames} = path
|
||||||
|
Loading…
Reference in New Issue
Block a user