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:
John Schmidt
2014-04-09 18:51:36 +02:00
committed by Thiago de Arruda
parent d11f805150
commit 2a0c6ff3ef

View File

@@ -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', ->