aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* | | | | unittest: Add failing test for freeing dictionaries in a listZyX2017-01-07
| | | | |
* | | | | unittest: Add dict_items functionZyX2017-01-07
| | | | |
* | | | | unittest: Add failing test of freeing listsZyX2017-01-07
| | | | |
* | | | | unittest: Allow mocking allocator callsZyX2017-01-07
| |/ / / |/| | |
* | | | Merge pull request #5826 from ZyX-I/fix-typval_encodeJames McCoy2017-01-06
|\ \ \ \ | | | | | | | | | | Refactor eval/typval_encode.h
| * | | | functests: Add tests for new fixesZyX2017-01-06
| | | | |
| * | | | unittests: Fix linter errorsZyX2017-01-03
| | | | |
| * | | | tests: Add tests for partials dumpingZyX2017-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | Also fixed dumping of partials by encode_vim_to_object and added code which is able to work with partials and dictionaries to test/unit/eval/helpers.lua (mostly copied from #5119, except for partials handling).
| * | | | eval/typval_encode: Fix infinite loopZyX2017-01-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Occurs when trying to dump a partial with attached self dictionary which references that partial. “Infinite” loop should normally result in Neovim killed by OOM killer. Also moved the place when partials are unreferenced by clear_tv: from …FUNC_START to …FUNC_END.
* | | | | path.c: `vim_FullName()`: Fix heap overflow #5737nfnty2017-01-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Clarify documentation. - Return `FAIL` and truncate if `fname` is too long. - Add tests.
* | | | | Merge #5874 from ZyX-I/fix-5482Justin M. Keyes2017-01-04
|\ \ \ \ \ | | | | | | | | | | | | Fix plugin which opens ShaDa files
| * | | | | plugin/shada: Handle NUL characters with intchar correctlyZyX2017-01-04
| | | | | | | | | | | | | | | | | | Fixes #5482
| * | | | | plugin/msgpack: Support character constants like '\0'ZyX2017-01-04
| | |/ / / | |/| | |
* | | | | Merge #5749 from justinmk/test-ctrl-cJustin M. Keyes2017-01-04
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | test: skip_fragile(), TEST_SKIP_FRAGILEJustin M. Keyes2017-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let build systems define TEST_SKIP_FRAGILE to skip tests that are known to be resource-intensive (unreliable on slow systems). References https://github.com/neovim/neovim/pull/5488#issuecomment-265622113
| * | | | test: ctrl_c_specJustin M. Keyes2017-01-04
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | - Improve test reliability by only checking for a line with the string we are interested in ("Interrupt"). - Try to avoid OOM by loading an existing big file instead of looping to create one.
* | | | Merge #5872 justinmk/test_autochdirJustin M. Keyes2017-01-04
|\ \ \ \
| * | | | test/helpers.rmdir(): Windows: Change to top-level dir on failure.Justin M. Keyes2017-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, if the nvim process has a directory open the lua process cannot remove it. After failing once, it's safe to force `nvim` to the top-level directory. Then try again.
| * | | | refactor: Remove VimL function `test_autochdir()`Justin M. Keyes2017-01-04
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | - Eliminate global test_autochdir. - Eliminate VimL function test_autochdir() - Use a lua test instead. Fails correctly after reverting 0c4347997954 / vim-patch:7.4.2015.
* | | | unittest: Fix linter errorsZyX2017-01-03
| | | |
* | | | unittest: Refactor preprocess.luaZyX2017-01-03
| | | | | | | | | | | | | | | | | | | | | | | | Keeps arguments separated and not joined as a single string as long as possible. Abstracts away additional arguments so that Gcc:preprocess should work for compilers with different conventions should they be supported.
* | | | unittest: Move nil checks to Gcc:preprocessZyX2017-01-03
| | | |
* | | | unittest: Record previous defines in another placeZyX2017-01-03
| | | | | | | | | | | | | | | | Previous commit made preprocess.lua know how its output will be used. This moves state to cimport, making only it know which is cleaner.
* | | | unittest: Allow multiple indirect includesZyX2017-01-03
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | test: jobclose(): Avoid indeterminism. (#5851)Justin M. Keyes2016-12-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stdout activity may reach the queue before `exit`; just discard it. Observed on Travis CI, ubuntu "trusty" beta image: [ RUN ] ...is/build/neovim/neovim/test/functional/core/job_spec.lua @ 509: jobs running tty-test program jobclose() sends SIGHUP ...is/build/neovim/neovim/test/functional/core/job_spec.lua:511: Expected objects to be the same. Passed in: (table) { [1] = 'notification' *[2] = 'stdout' [3] = { [1] = 0 [2] = { [1] = ' ' [2] = '' } } } Expected: (table) { [1] = 'notification' *[2] = 'exit' [3] = { [1] = 0 [2] = 42 } } stack traceback: ...is/build/neovim/neovim/test/functional/core/job_spec.lua:511: in function <...is/build/neovim/neovim/test/functional/core/job_spec.lua:509> [ FAILED ] ...is/build/neovim/neovim/test/functional/core/job_spec.lua @ 509: jobs running tty-test program jobclose() sends SIGHUP (2.81 ms)
* | | Tests: make unit tests work on macOS SierraMarco Hinz2016-12-29
| | | | | | | | | | | | Fixes #5455.
* | | vim-patch:7.4.1768James McCoy2016-12-27
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Arguments of setqflist() are not checked properly. Solution: Add better checks, add a test. (Nikolai Pavlov, Hirohito Higashi, closes vim/vim#661) https://github.com/vim/vim/commit/d106e5ba7f10f0d2a14eaefe5d78405044416cb9
* | | test: quickfix: Move upstream vim quickfix test to src/nvim/testdirJames McCoy2016-12-27
| | | | | | | | | | | | | | | Massaging the upstream patches for this test into the lua tests are too cumbersome and slow down patching.
* | | test: job_spec: Avoid unreliable screen test.Justin M. Keyes2016-12-23
| | |
* | | eval.c: set_selfdict(): Fix invalid memory access.Justin M. Keyes2016-12-14
| | |
* | | Merge pull request #5760 from jamessan/shada-percent-countJames McCoy2016-12-13
|\ \ \ | | | | | | | | shada: Respect the optional buffer count for shada-%
| * | | shada: Respect the optional buffer count for shada-%James McCoy2016-12-12
| | | | | | | | | | | | | | | | Closes #5759
* | | | Make VimL code compatible with merged Partial support (#5765)Marco Hinz2016-12-13
|/ / / | | | | | | Closes #5763.
* | | Add some tests and cleanup.Michael Ennen2016-12-12
| | |
* | | Make partials work with jobs, timers, and dictwatchers.Björn Linse2016-12-12
| | |
* | | vim-patch:7.4.1605Michael Ennen2016-12-12
| | | | | | | | | | | | | | | | | | | | | Problem: Catching exception that won't be thrown. Solution: Remove try/catch. https://github.com/vim/vim/commit/3905e291fe4375ca5c59efa9ffcb01a39c7be3a9
* | | test: jobstart()Justin M. Keyes2016-12-11
| | |
* | | jobstart(): Return -1 if cmd is not executable. #5671Aaron Williamson2016-12-10
| | | | | | | | | | | | Closes #5465
* | | os/shell: do_os_system(): Always show last chunk.Justin M. Keyes2016-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This ameliorates use-cases like: :!cat foo.txt :make where the user is interested in the last few lines of output. Try these shell-based ex-commands before/after this commit: :grep -r '' * :make :!yes :!grep -r '' * :!git grep '' :!cat foo :!echo foo :!while true; do date; done :!for i in `seq 1 20000`; do echo XXXXXXXXXX $i; done In all cases the last few lines of the command should always be shown, regardless of where throttling was triggered.
* | | os/shell: Throttle :! output, pulse "..." message.Justin M. Keyes2016-12-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Periodically skip :! spam. This is a "cheat" that works for all UIs and greatly improves responsiveness when :! spams MB or GB of output: :!yes :!while true; do date; done :!git grep '' :grep -r '' * After ~10KB of data is seen from a single :! invocation, output will be skipped for ~1s and three dots "..." will pulse in the bottom-left. Thereafter the behavior alternates at every: * 10KB received * ~1s throttled This also avoids out-of-memory which could happen with large :! outputs. Note: This commit does not change the behavior of execute(':!foo'). execute(':!foo') returns the string ':!foo^M', it captures *only* Vim messages, *not* shell command output. Vim behaves the same way. Use system('foo') for capturing shell command output. Closes #1234 Helped-by: oni-link <knil.ino@gmail.com>
* | | tui: "backpressure": Drop messages to avoid flooding.Justin M. Keyes2016-12-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1234 multiqueue: - Implement multiqueue_size() - Rename MultiQueueItem.parent to MultiQueueItem.parent_item, to avoid confusion with MultiQueue.parent.
* | | test: Handle SIGHUP in tty-test fixture.Justin M. Keyes2016-12-07
| | | | | | | | | | | | Closes #5727
* | | test: Disable unreliable tests on travis+ASAN_UBSANJustin M. Keyes2016-12-07
| | |
* | | test: helpers.retry()Justin M. Keyes2016-12-07
| | |
* | | Tests: add tests for v:exitingMarco Hinz2016-12-01
| | |
* | | Merge pull request #5669 from chemzqm/add-cmdline-mode-rpcBjörn Linse2016-12-01
|\ \ \ | | | | | | | | Add cmdline mode to ui_mode_change
| * | | add cmdline mode to modechange of RPC and testschemzqm2016-11-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use set_cursor_shape_bar for cmdline mode fix test of screen_basic_spec.lua & screen.lua comment fix
* | | | Merge pull request #5662 from brcolow/vim-7.4.1701James McCoy2016-12-01
|\ \ \ \ | | | | | | | | | | vim-patch:7.4.1701
| * | | | vim-patch:7.4.1701Michael Ennen2016-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Equivalence classes still tested in old style tests. Solution: Remove the duplicate. https://github.com/vim/vim/commit/f9f22dbe4f90673ecce601a9dee4bb750ce3cd8f
* | | | | vim-patch:7.4.1699 (#5660)Michael Ennen2016-11-29
| |/ / / |/| | | | | | | | | | | | | | | | | | | Problem: :packadd does not work the same when used early or late. Solution: Always load plugins matching "plugin/**/*.vim". https://github.com/vim/vim/commit/71fb0c146bef08dc276fc5793bd47366e6e0f32a