| Commit message (Collapse) | Author | Age |
... | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It turns out that Busted started cleaning the environment in 2.0rc5 as a
result of Olivine-Labs/busted#62. This, in turn, caused the ffi module
to be reloaded for each spec file, and LuaJIT doesn't appreciate it.
The net effect is an assertion error in LuaJIT.
By using the --helper feature of Busted, we can pre-load some modules
ahead of Busted and prevent it from reloading them--making LuaJIT happy
again.
|
| |
| |
| |
| | |
Migrate legacy test 77 which tests mf_hash_grow() to lua/busted.
|
|/
|
|
| |
This allows sending binary data that is not newline terminated
|
|\
| |
| | |
tests: don't hardcode the path to tty-test
|
| |
| |
| |
| |
| | |
This fixes the build for those who drive the build directly using
CMake.
|
|/
|
|
|
|
|
|
| |
This is necessary for newer versions of Busted, otherwise assert will be
nil and the tests will die.
Note: this does not mean the tests now work with the latest Busted.
There are still several issues preventing that from happening.
|
|
|
|
|
| |
- closes #2057
- see https://github.com/neovim/neovim/issues/2057 for discussion
|
| |
|
|
|
|
|
| |
Job autocommands will no longer buffer data chunks that don't end in newlines
characters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Removed term.c, term.h and term_defs.h
- Tests for T_* values were removed. screen.c was simplified as a
consequence(the best strategy for drawing is implemented in the UI layer)
- Redraw functions now call ui.c functions directly. Updates are flushed with
`ui_flush()`
- Removed all termcap options(they now return empty strings for compatibility)
- &term/&ttybuiltin options return a constant value(nvim)
- &t_Co is still available, but it mirrors t_colors directly
- Remove cursor tracking from screen.c and the `screen_start` function. Now the
UI is expected to maintain cursor state across any call, and reset it when
resized.
- Remove unused code
|
|
|
|
|
| |
This is to ensure ctrl+c is only pressed after the command has started executing
in the viml_system_spec.lua system() interrupt test.
|
| |
|
|
|
|
| |
The flag is no longer valid(pynvim always starts a GUI)
|
| |
|
| |
|
|
|
|
| |
TabClosed is triggered when a tab page closes.
|
|
|
|
| |
TabNewEntered is triggered after vim has entered a buffer in new tab.
|
|
|
|
|
| |
TabNew triggers when entering a new tab page, but not when entering an
already created one.
|
|
|
|
|
|
| |
- The syntax `gui=` is invalid when setting properties of highlight group.
- Wait for the initial "-- More --" prompt before continuing. Required to avoid
a race condition
|
|
|
|
|
| |
Now the attrentry_T structure will store all attributes in separate fields for
cterm and rgb UIs.
|
|
|
|
|
|
| |
Some screen tests such as system/ctrl+c(viml_system_spec.lua) can take some time
to respond(default kill timeout is 2 seconds for an interrupted job) and fail
when running under a slow environment such as travis.
|
|
|
|
|
|
| |
The `system` function is never executed with these tests because the ctrl+c is
queued with the input string that calls it(The `process_interrupts` function
will destroy all previous input when a ctrl+c is found).
|
|
|
|
|
| |
Without waiting for the 'gg' command to be processed, its possible that the
following assertion will fail.
|
|
|
|
|
| |
The `wait` function will only return after all input has been processed by nvim.
It is useful to time assertions correctly.
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fix an fs_spec test under FreeBSD and a symlinked home directory.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It turns out the FreeBSD 10 VM has a symlink for the home directory to
/usr/home. Unfortunately, this breaks the test as arg[0] may not have
the symlink resolved, but the path returned from the exe() call will.
As a result, the comparison fails, even though the result is correct.
Let's fix this by running the absolute path through exe() too, and then
comparing the results.
|
|\ \
| | |
| | |
| | |
| | | |
jszakmeister/fix-unittest-header-parsing-on-freebsd
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.
|
| | |
|
|/
|
|
|
| |
FreeBSD doesn't use bash by default, causing the group id to be print
out in the middle of the test.
|
|
|
|
|
|
|
|
|
|
| |
The systemlist test currently calls the `echo` command which can potentially
complete before being interrupted, causing random test failures.
Use `yes | xargs` instead. A `yes` invocation that is not piped through `xargs`
can produce a huge amount of lines in a very short time, leading memory
starvation when the result is being converted into a list. `xargs` ensures only
one line of output will be produced while allowing interrupt to be tested.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Disable JIT to find cause for random `PANIC: unprotected error in call to Lua API` on Travis (OS X).
|
|
|
|
|
|
|
| |
`job_send` is non-blocking and can potentially fail due to the following
`job_stop` call. Since we can't reliably verify that the "exit" event is only
sent after the "stdout" event, mark the test as pending and fix after we can
get a notification about `job_send` status.
|
|
|
|
|
|
|
| |
The test was hoping to not find a tags file, but didn't actively guard
against it. In my case, I had a tags file present which was causing
different output to be generated. To fix this, let's set the tags
option to look for an unlikely filename.
|
| |
|
|
|
|
|
| |
This test depends on terminal size to work correctly. After migration this
requirement is removed.
|
|
|
|
|
|
| |
While running under valgrind, the screen can take significantly longer to
update(especially on travis) so a higher timeout can be required. Also reduce
the timeout when not running on valgrind.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When a test that fails leaves nvim in a 'Press Enter...' state, the whole suite
will hang because the `qa!` command executed before the next test won't be
processed until '<enter>' is sent.
Now the lua client can send a signal with when `Session:exit()` is called, so
the `qa!` request is no longer necessary.
Also:
- Set noswapfile at startup to prevent tests from leaving .s* swap files(should
also improve test environment determinism)
- Use `assert(false, msg) instead of `error(msg)` to report screen assertion
failures.
|
| |
|
| |
|
|
|
|
|
| |
- shortmess+=I: Remove intro screen
- background=light: Disregard COLORFGBG environment variable
|
|
|
|
| |
Replace the hexadecimal escape sequences, which are only supported by luajit
|