aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
* | | | | os/fs: Rename os_file_exists to os_path_exists (#4973)Daniel Xu2016-07-06
| | | | | | | | | | | | | | | | | | | | Because the old name did not indicate that the function would return true on directories as well.
* | | | | test/functional: sleep()Justin M. Keyes2016-07-03
| | | | |
* | | | | test: TUI colors ('t_Co')Justin M. Keyes2016-07-03
| |/ / / |/| | |
* | | | vim-patch:7.4.1121 (#4989)prollings2016-07-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: test_expand leaves files behind. Solution: Edit another file before deleting, otherwise the swap file remains. https://github.com/vim/vim/commit/08b270a8a4544be9a7fecce311834fde2b457634
* | | | Tests: check 'autochdir' on startupMarco Hinz2016-07-02
| | | |
* | | | Merge pull request #4880 from bfredl/zerotimerBjörn Linse2016-07-01
|\ \ \ \ | | | | | | | | | | make timers work correctly when timeout or repeat is zero
| * | | | timers: make repeat=0 work one-shot (consistent with vim)Björn Linse2016-06-29
| | | | |
| * | | | timers: make timers work with zero timeoutBjörn Linse2016-06-29
| | | | |
* | | | | Add test for :dropKillTheMule2016-07-01
| |/ / / |/| | | | | | | | | | | Cf. https://github.com/neovim/neovim/pull/4995
* | | | vim-patch:7.4.1136Patrick2016-06-30
|/ / / | | | | | | | | | | | | | | | | | | | | | Problem: Wrong argument to assert_exception() causes a crash. (reported by Coverity) Solution: Check for NULL pointer. Add a test. https://github.com/vim/vim/commit/da5dcd936656f524dd0ae7cb2685245f07f5720f
* | | Merge #4984 'Trigger TabNewEntered with <CTRL-W>T'Justin M. Keyes2016-06-28
|\ \ \ | |/ / |/| | | | | Closes #4979
| * | [RFC] Fix #4979: Trigger TabNewEntered also with <CTRL-W>TDimitri Merejkowsky2016-06-28
|/ / | | | | | | Original patch by @fmoralesc
* | unittests/*/helpers: Fix testlint errorsZyX2016-06-24
| |
* | msgpack_rpc: Fix crash in log_server_msgZyX2016-06-24
| | | | | | | | | | | | | | | | | | | | | | It appears that used msgpack library is not able to parse back message created by msgpack_rpc_from_object() if nesting level is too high, so log_server_msg now cares about msgpack_unpack_next() return value. Also error message from server_notifications_spec.lua is not readable if something is wrong (though at least now it does not crash when parsing deeply nested structures). log_server_msg() in the test reports [msgpack-rpc] nvim -> client(1) [error] "parse error"
* | fixup! unittests: Add tests for vim_to_object functionZyX2016-06-24
| |
* | msgpack_rpc: Also make msgpack_from_*/msgpack_to_* functions not recurZyX2016-06-24
| | | | | | | | | | | | This removes some stack overflows in new test regarding deeply nested variables. Now in place of crashing vim_to_object/msgpack_rpc_from_object/etc it crashes clear_tv with stack overflow.
* | unittests: Add tests for vim_to_object functionZyX2016-06-24
| |
* | api/helpers: Use typval_encode.h for vim_to_objectZyX2016-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | | This ought to prevent stack overflow, but I do not see this actually working: *lua* code crashes with stack overflow when trying to deserialize msgpack from Neovim, Neovim is fine even if nesting level is increased 100x (though test becomes very slow); not sure how recursive function may survive this. So it looks like there are currently only two positive effects: 1. NULL lists are returned as empty (#4596). 2. Functional tests are slightly more fast. Very slightly. Checked for Release build for test/functional/eval tests because benchmarking of debug mode is not very useful.
* | unittests: Fix testlint errorsZyX2016-06-24
| |
* | unittests: Fix kFileNoSymlink test on FreeBSDZyX2016-06-24
| | | | | | | | | | | | | | | | | | | | | | Actual value on FreeBSD is -31, UV_EMLINK was obtained from /usr/include/asm-generic/errno-base.h (there EMLINK is defined as 31 there). This may actually be something else, but I do not think so as “Too many links” description also fits in. [Man page][1] agrees with me, search for `[EMLINK]` ([linux man page][2] also specifies ELOOP explicitly in a similar section). [1]: https://www.freebsd.org/cgi/man.cgi?query=open&sektion=2 [2]: http://man7.org/linux/man-pages/man3/open.3p.html
* | unittests: Fix bug somewhere that makes file_read tests SEGVZyX2016-06-24
| |
* | file: Move src/nvim/file.* to src/nvim/os/fileio.*ZyX2016-06-24
| |
* | unittests: Add tests for file.cZyX2016-06-24
| | | | | | | | Also fixes some errors found.
* | unittests: Add os_write testZyX2016-06-23
| | | | | | New os/fs.c functions are now all tested.
* | unittests: Add os_close, os_read and os_readv testsZyX2016-06-23
| |
* | test: fix command_count_specBjörn Linse2016-06-23
| | | | | | | | The test hit wait_return if x or .x.swp exists in the project root directory.
* | vim-patch:7.4.1592James McCoy2016-06-22
| | | | | | | | | | | | | | Problem: Quickfix code using memory after being freed. (Dominique Pelle) Solution: Detect that the window was closed. (Hirohito Higashi) https://github.com/vim/vim/commit/0899d698030ec076eb26352cda1ea334ab0819d9
* | Add tests for new featureMarco Hinz2016-06-20
| |
* | Make existing tests work with new featureMarco Hinz2016-06-20
| |
* | Merge #4933 from ZyX-I/fix-matchparen-specJustin M. Keyes2016-06-20
|\ \ | | | | | | Make matchparen_spec.lua fail if matchparen is not available
| * | functests: Fix matchparen_spec.luaZyX2016-06-17
| | |
* | | Merge #4697 'capture() function'.Justin M. Keyes2016-06-20
|\ \ \
| * | | Port capture() functionShougo Matsushita2016-05-27
| | | | | | | | | | | | | | | | https://groups.google.com/forum/#!msg/vim_dev/H3Z3ChSUh_4/beZs6KzYdBsJ
* | | | test/highlight_spec: Test "gui" arg of synIDattr().Justin M. Keyes2016-06-18
| | | | | | | | | | | | | | | | Also use less "regular" values for cterm colors.
* | | | synIDattr(): return RRGGBB value for [fg|bg|sp]# #4851Rom Grk2016-06-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add tests for synIDattr() with [fg|bg|sp]# add tests for synIDattr and various #RGB colors synIDattr: test for ui_rgb_attached() test: fix tests for synIDattr fg/bg/sp
* | | | eval: add api_info()Björn Linse2016-06-17
| | | | | | | | | | | | | | | | | | | | Previously, the api metadata was only accessible frow within nvim as msgpackparse(systemlist('nvim --api-info'))[0]
* | | | vim-patch:7.4.1126James McCoy2016-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Can only get the directory of the current window. Solution: Add window and tab arguments to getcwd() and haslocaldir(). (Thinca, Hirohito Higashi) https://github.com/vim/vim/commit/c970330676eaae7ba7cd05cfa46df5a413853ef9
* | | | test: functional: Remove unnecessary use of clipboard registerJames McCoy2016-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | menu_spec.lua yanks to the clipboard, but never pastes from it. This can leave a child xsel process waiting around for something to paste the content, causing the test process to hang. Since the test isn't explicitly trying to exercise the clipboard, simply use the default register.
* | | | test: functional: Remove test_bkc_* files after testingJames McCoy2016-06-15
| | | |
* | | | Add new functionality to the `=` marker in the STLTJ DeVries2016-06-14
| | | | | | | | | | | | | | | | | | | | | | | | This new functionality is explained in the documentation. Also, many tests have been added to the buffer_spec.lua file
* | | | test: Use clipboard fixture instead of user's clipboard (#4903)James McCoy2016-06-11
| |/ / |/| |
* | | functests: Do not use setup/teardown where before_/after_each is neededZyX2016-06-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When skipping these test blocks they may error out: Error → test/functional/shell/viml_system_spec.lua @ 154 system() with output containing NULs setup ./test/functional/helpers.lua:75: attempt to index upvalue 'session' (a nil value) stack traceback: ./test/functional/helpers.lua:75: in function 'request' ./test/functional/helpers.lua:166: in function 'nvim_feed' ./test/functional/helpers.lua:195: in function 'feed' test/functional/shell/viml_system_spec.lua:14: in function <test/functional/shell/viml_system_spec.lua:13> Error → test/functional/shell/viml_system_spec.lua @ 155 system() with output containing NULs teardown ./test/functional/helpers.lua:75: attempt to index upvalue 'session' (a nil value) stack traceback: ./test/functional/helpers.lua:75: in function 'eval' test/functional/shell/viml_system_spec.lua:21: in function <test/functional/shell/viml_system_spec.lua:20>
* | | functests: Check logs in lua codeZyX2016-06-10
| | | | | | | | | | | | | | | | | | It is otherwise impossible to determine which test failed sanitizer/valgrind check. test/functional/helpers.lua module return was changed so that tests which do not provide after_each function to get new check will automatically fail.
* | | Merge #4813 'runtime: clipboard: start daemons in /'.Justin M. Keyes2016-06-10
|\ \ \
| * | | test: add tests for cwd handlingAleksa Sarai2016-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add both a test for cwd=/ and cwd=/tmp/nvim.XXXXX, to make sure that we don't have regressions in cwd handling. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
* | | | Merge pull request #4738 from brcolow/vim-7.4.1223James McCoy2016-06-09
|\ \ \ \ | | | | | | | | | | | | | | | vim-patch:7.4.1223
| * | | | vim-patch:7.4.1223Michael Ennen2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Crash when setting v:errors to a number. Solution: Free the typval without assuming its type. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/a542c680a8b42cb766e64d4ee7374ef4dacb7832
* | | | | vim-patch:7.4.1468Jurica Bradaric2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sort test doesn't test with "1" argument. Solution: Also test ignore-case sorting. (Yasuhiro Matsumoto) https://github.com/vim/vim/commit/51d1d536802b5d8232d47e56f165ba8a009529b5
* | | | | vim-patch:7.4.1464Jurica Bradaric2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: When the argument of sort() is zero or empty it fails. Solution: Make zero work as documented. (suggested by Yasuhiro Matsumoto) https://github.com/vim/vim/commit/5131c144feb046c5e2b72e6c172159d80ce06b3c
* | | | | vim-patch:7.4.1397Jurica Bradaric2016-06-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Sort test fails on MS-Windows. Solution: Correct the compare function. https://github.com/vim/vim/commit/0bb6108eb4e1ecaed437bc507f514f5da7816d9e