aboutsummaryrefslogtreecommitdiff
path: root/test/unit
Commit message (Collapse)AuthorAge
...
* unittests: Log syscalls if requestedZyX2017-03-11
|
* unittests: Use own bindings to libc syscall wrappersZyX2017-03-11
|
* unittests: Do not use syscall library: does not work well with cimportZyX2017-03-11
|
* unittests: Try using syscall library instead (ffi-based)ZyX2017-03-11
|
* unittests: Pause garbage collector while executing testsZyX2017-03-11
| | | Temporary (?) workaround for currently failing check_alloc_log tests.
* unittests: Run tests in a separate processZyX2017-03-11
|
* vim-patch:7.4.2068James McCoy2017-03-06
| | | | | | | | | Problem: Not all arguments of trunc_string() are tested. Memory access error when running the message tests. Solution: Add another test case. (Yegappan Lakshmanan) Make it easy to run unittests with valgrind. Fix the access error. https://github.com/vim/vim/commit/b9644433d2728e99fab874e5e33147ad95d23a31
* vim-patch:7.4.2051James McCoy2017-03-06
| | | | | | | Problem: No proper testing of trunc_string(). Solution: Add a unittest for message.c. https://github.com/vim/vim/commit/502ae4ba63561c98ac69af26cd9883bfd18d225f
* test: luacheck updateJustin M. Keyes2017-03-01
| | | | | We pull luacheck HEAD, so this is a "catch up" commit to fix newly-discovered errors.
* buffer: Hide one of the asserts from lua parserZyX2017-02-25
|
* unittest: Filter out standard defines so that they do not spam stderr (#6113)Nikolai Aleksandrovich Pavlov2017-02-15
|
* build: Do not force busted into front of $PATHJustin M. Keyes2017-02-04
| | | | | | | | | This was a workaround from long ago, but it doesn't seem to be needed anymore. And it breaks the $PATH on the Windows build (AppVeyor CI). After this change python3 (and 2) is correctly detected on AppVeyor CI. References #5946
* win: Append process dir to $PATHJustin M. Keyes2017-02-04
| | | | | | | | This allows executables to be found by :!, system(), and executable() if they live next to ("sibling" to) nvim.exe. This is what gvim on Windows does, and also matches the behavior of Win32 SearchPath(). https://github.com/vim/vim/blob/c4a249a736d40ec54794827ef95804c225d0e38f/src/os_win32.c#L354-L370
* xstrlcat: Allow overlapped pointers. (#6017)Justin M. Keyes2017-01-31
| | | | | | | | | | memcpy is not equivalent to memmove (which is used by vim_strcat), this could cause subtle bugs if xstrlcat is used as a replacement for vim_strcat. But vim_strcat is inconsistent: in the `else` branch it uses strcpy, which doesn't allow overlap. Helped-by: oni-link <knil.ino@gmail.com> Helped-by: James McCoy <jamessan@jamessan.com> Helped-by: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>
* test: expand_env_esc()Justin M. Keyes2017-01-21
| | | | | | Test expand_env_esc() using the same parameters reported in #3725. Closes #3725
* unittest: Fix linter errorsZyX2017-01-07
|
* unittest,memory: Fix testsZyX2017-01-07
|
* 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
| * 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).
* | path.c: `vim_FullName()`: Fix heap overflow #5737nfnty2017-01-05
| | | | | | | | | | | | - Clarify documentation. - Return `FAIL` and truncate if `fname` is too long. - Add tests.
* | 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
* Tests: make unit tests work on macOS SierraMarco Hinz2016-12-29
| | | | Fixes #5455.
* 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.
* build: Target luacheck HEAD.Justin M. Keyes2016-11-17
| | | | | | | | | | | | https://github.com/mpeterv/luacheck/pull/81#issuecomment-261099606 > If you really want to use bleeding-edge version you should get the > rockspec from master branch, not a fixed commit ... > The correct way to install from a specific commit is cloning that > commit and running "luarocks make" from project directory. The reason > is that running "install" or "build" on an scm rockspec fetches > sources from master but uses build description from the rockspec > itself, which may be outdated.
* event/multiqueue.c: Rename "queue" to "multiqueue".Justin M. Keyes2016-10-02
| | | | | | | | | | | | | | `lib/queue.h` implements a basic queue. `event/queue.c` implements a specialized data structure on top of lib/queue.h; it is not a "normal" queue. Rename the specialized multi-level queue implemented in event/queue.c to "multiqueue", to avoid confusion when reading the code. Before this change one can eventually notice that "macros (uppercase symbols) are for the normal queue, lowercase operations are for the multi-level queue", but that is unnecessary friction for new developers (or existing developers just visiting this part of the codebase).
* shell_escape: rename; refactorJustin M. Keyes2016-09-11
| | | | | | | | - rename to shell_xescape_xquote - move to os/shell.c - disallow NULL argument - eliminate casts, nesting - test: empty shellxquote/shellxescape
* system(): Respect 'sxe' and 'sxq' #2789Zhaosheng Pan2016-09-10
| | | | Fixes #2773
* test: Add unittest spec for option.c (#5289)Kalle Ranki2016-09-04
| | | | | | | | Move typedef expand_T to types.h for tests Fix lint error for old style comments Describe 'check_ff_value' valid values as an initial test. Fix 'get_sts_value' comment inaccuracy and add unit test for it
* api: unify buffer numbers and window ids with handlesBjörn Linse2016-08-31
| | | | also allow handle==0 meaning curbuf/curwin/curtab
* 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.
* unittests/*/helpers: Fix testlint errorsZyX2016-06-24
|
* fixup! unittests: Add tests for vim_to_object functionZyX2016-06-24
|
* unittests: Add tests for vim_to_object functionZyX2016-06-24
|
* 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
|
* 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