neovim/test/unit
Nicolas Hillegeer 522a15f1c0 test: fix formatc.lua oddity on OSX/gcc
The primitive C canonicalizer we use to strip out duplicate header
declarations and keep luajit's ffi happy, didn't work properly in this case.

What happened is this (in /usr/include/ctype.h):

__DARWIN_CTYPE_TOP_inline int
isspecial(int _c)
{
        return (__istype(_c, _CTYPE_T));
}

Gets preprocessed to something like:

__inline int
isspecial(int _c)
{
        return (__istype(_c, _CTYPE_T));
}

On OSX/gcc. The formatter wasn't recognizing this entire function as
something to put on a single line because it naively just checks for
"static" or "inline" for that, but not "__inline".

This error doesn't occur on OSX/clang. Without looking further into it, I
guess that __DARWIN_CTYPE_TOP_inline gets defined to inline on clang, but
__inline on gcc, for some reason.

This helps issue #1572 along.
2015-01-16 21:45:00 +01:00
..
os test/os/fs: fix call to lfs.attributes 2015-01-16 21:44:25 +01:00
buffer_spec.lua unit tests: initialize everything 2014-09-11 08:58:17 +00:00
fileio_spec.lua Add tests for buffer.c and fileio.c 2014-07-22 05:28:17 -05:00
formatc.lua test: fix formatc.lua oddity on OSX/gcc 2015-01-16 21:45:00 +01:00
garray_spec.lua unit tests: avoid global scope; add missing cimports 2014-09-11 05:17:52 +00:00
helpers.lua mch_early_init() -> early_init(). 2014-11-28 14:27:58 -05:00
path_spec.lua unit tests: avoid global scope; add missing cimports 2014-09-11 05:17:52 +00:00
preprocess.lua unit tests: avoid global scope; add missing cimports 2014-09-11 05:17:52 +00:00
profile_spec.lua profiling: add tests 2014-07-16 17:12:35 +02:00
set.lua unittest: convert set.moon to lua 2014-08-31 14:50:49 +02:00
tempfile_spec.lua unit tests: initialize everything 2014-09-11 08:58:17 +00:00