ZyX
0d7b779cab
unittest: Record previous defines in another place
...
Previous commit made preprocess.lua know how its output will be used. This moves
state to cimport, making only it know which is cleaner.
2017-01-03 22:54:54 +03:00
ZyX
410d18ef5c
unittest: Allow multiple indirect includes
...
Works by saving all preprocessor defines and reusing them on each run. This also
saves NVIM_HEADER_H defines. Saving other defines is needed for defines like
`Map(foo, bar)` which are sometimes used to declare types or functions. Saving
types or function declarations is not needed because they are recorded as luajit
state.
Fixes #5857
2017-01-03 22:54:54 +03:00
Marco Hinz
d2998a0a49
Tests: make unit tests work on macOS Sierra
...
Fixes #5455 .
2016-12-29 02:58:21 +01:00
Marco Hinz
32ecd75a16
test/unit: clean up according to luacheck
2015-11-23 13:57:21 +01:00
John Szakmeister
bc6ef4bf80
unittests: define _Thread_local to be nothing
...
This helps the LuaJIT ffi module to parse the header correctly.
Otherwise, the whole suite of tests fail.
2015-02-09 05:37:24 -05:00
Justin M. Keyes
f6088e79b0
unit tests: avoid global scope; add missing cimports
...
temporarily comment out call to vim_deltempdir() to avoid segfault
2014-09-11 05:17:52 +00:00
Thiago de Arruda
3a951112c0
unittest: convert preprocess.moon to lua
2014-08-31 14:50:49 +02:00