mirror of
https://github.com/neovim/neovim.git
synced 2025-10-02 16:08:36 +00:00
Fix broken build due to unit test include order
Commit 4348d1e6f7
introduced a bug that breaks the unit tests unless
they run in a certain order. Both path.moon
and os/fs.moon tries to include the same Enum, which
fails since ffi.cdef can only include definitions once.
This solves the bug by using Lua variables instead of
ffi.cdef Enums.
This commit is contained in:

committed by
Thiago de Arruda

parent
d11f805150
commit
2a0c6ff3ef
@@ -16,7 +16,8 @@ char_u *path_next_component(char_u *fname);
|
||||
-- import constants parsed by ffi
|
||||
{:kEqualFiles, :kDifferentFiles, :kBothFilesMissing, :kOneFileMissing, :kEqualFileNames} = path
|
||||
NULL = ffi.cast 'void*', 0
|
||||
{:OK, :FAIL} = path
|
||||
OK = 1
|
||||
FAIL = 0
|
||||
|
||||
describe 'path function', ->
|
||||
describe 'path_full_compare', ->
|
||||
|
Reference in New Issue
Block a user