aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval
Commit message (Collapse)AuthorAge
...
* msg: do not scroll entire screen (#8088)Björn Linse2018-03-31
|
* win: defaults: 'shellcmdflag', 'shellxquote' #7343Jan Edmund Lazo2018-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | closes #7698 Wrapping a command in double-quotes allows cmd.exe to safely dequote the entire command as if the user entered the entire command in an interactive prompt. This reduces the need to escape nested and uneven double quotes. The `/s` flag of cmd.exe makes the behaviour more reliable: :set shellcmdflag=/s\ /c Before this patch, cmd.exe cannot use cygwin echo.exe (as opposed to cmd.exe `echo` builtin) even if it is wrapped in double quotes. Example: :: internal echo > cmd /s /c " echo foo\:bar" " foo\:bar" :: cygwin echo.exe > cmd /s /c " "echo" foo\:bar" " foo:bar
* test: win: emulate yes with for loopJan Edmund Lazo2018-02-19
|
* ui: refactor ui optionsBjörn Linse2018-02-13
|
* win: enable backtick_expansion and shell output testsJan Edmund Lazo2018-02-10
|
* test: :! print binary data, control charsJustin M. Keyes2018-02-07
| | | | | | | | | | closes #5442 closes #4142 ref #6618 ref #4376 ref #7844 ref #2958 ref #4338
* shell: update `execute('!cmd')` test to new behaviorBjörn Linse2018-02-06
| | | | And similarly nvim_command_output test
* test: robust cleanup, unique filenames #7950 (#7950)Justin M. Keyes2018-02-01
| | | | | | | Use unique filenames to avoid test conflicts. Use read_file() instead of io.popen(), to ensures the file is closed. Use helpers.rmdir(), it is far more robust than lfs. closes #7911
* os_system(): do not set up input stream for empty string #7951Justin M. Keyes2018-02-01
| | | | | | | | | Test failure: test/functional/eval/system_spec.lua: "works with an empty string" E5677: Error writing input to shell-command: EPIPE ref https://github.com/neovim/neovim/pull/6558#issuecomment-361061035 ref #6554
* win: has("wsl") on Windows Subsystem for Linux #7330Mahmoud Al-Qudsi2018-01-30
| | | | | | | | | | | | | Per CMAKE docs, CMAKE_HOST_SYSTEM_VERSION is the result of `uname -r`: https://cmake.org/cmake/help/v3.4/variable/CMAKE_HOST_SYSTEM_VERSION.html?highlight=uname A numeric version string for the system. On systems that support uname, this variable is set to the output of uname -r. On other systems this is set to major-minor version numbers. On Windows it is something like "6.1", so it won't match ".*-Microsoft". Closes #7329
* test: use helpers.pathroot() to avoid a syscallJan Edmund Lazo2018-01-29
|
* test: fnamemodify with :8 filename modifierJan Edmund Lazo2018-01-28
|
* fixup: get network drive only, not entire pathJan Edmund Lazo2018-01-28
|
* test: win: get current network drive via io.popenJan Edmund Lazo2018-01-28
|
* test: win: add tests for shellslashJan Edmund Lazo2018-01-28
|
* test: fnamemodify()Justin M. Keyes2018-01-28
|
* test/win: fix some environment assumptions #7912George Zhao2018-01-28
| | | | | fix #7909 fix #7910
* eval: save_tv_as_string: Correctly handle an empty stringJames McCoy2018-01-23
| | | | | | | | When tv_get_string_chk returns a non-NULL value, we have a valid string. Propagating an error state (*len = -1, NULL return) for an empty string is invalid. Closes #6554
* test: system(): fix testJustin M. Keyes2018-01-23
| | | | | | | For the test to be valid it should actually send input. ref #3529 ref #5241
* Merge #7860 'fix get_buffer_lines'Justin M. Keyes2018-01-16
|\
| * get_buffer_lines: Return a string, when requested, on invalid inputJames McCoy2018-01-15
|/ | | | Closes #7859
* vim-patch:8.0.0151,3,4 #7389Justin M. Keyes2018-01-15
| | | | | | | | | | | | | | | | | | | vim-patch:8.0.0151 Problem: To pass buffer content to system() and systemlist() one has to first create a string or list. Solution: Allow passing a buffer number. (LemonBoy, closes vim/vim#1240) https://github.com/vim/vim/commit/12c4492dd35e0cd83c8816be2ec849b836109882 vim-patch:8.0.0153 Problem: system() test fails on MS-Windows. Solution: Deal when extra space and CR. https://github.com/vim/vim/commit/9d9c35651712b88c81f1ae11091de1fd0bbbd35c vim-patch:8.0.0154 Problem: system() test fails on OS/X. Solution: Deal with leading spaces. https://github.com/vim/vim/commit/31f19ce0a052f7c76d44a9a190e468c79cf5d56d
* test: win: yes is unavailable on WindowsJan Edmund Lazo2018-01-06
|
* win: test: check non-shell system()Jan Edmund Lazo2018-01-06
|
* test: use unix fileformat to test NULs on systemlistJan Edmund Lazo2018-01-06
|
* functests: Fix linter errorZyX2017-12-16
|
* window: Fix matchaddpos() and enhance error reportingZyX2017-12-15
|
* *: Fix some problems found during reviewZyX2017-12-15
| | | | Still missing: problems in window.c, it should be possible to construct a test for them.
* eval: Fix add()ZyX2017-12-11
|
* *: Fix test failuresZyX2017-12-11
|
* functests: Add some more NULL testsZyX2017-12-10
|
* eval: Fix uniq() crash in legacy test 055ZyX2017-12-10
|
* functests: Mark islocked("v:_null_list") behaviour correctZyX2017-12-10
| | | It is the same for other VAR_FIXED lists.
* quickfix: Fix :cexpr and :lexprZyX2017-12-10
|
* eval: Fix setmatches(), setqflist() and setloclist()ZyX2017-12-10
|
* eval,functests: Fix tests and complete() and setline() behaviourZyX2017-12-10
|
* *: Hide list implementation in other files as wellZyX2017-12-10
|
* eval: Fix writefile()ZyX2017-12-10
|
* eval: Fix inputlist()ZyX2017-12-10
|
* *: Start hiding list implementationZyX2017-12-10
| | | | Most of files, except for eval.c and eval/* were only processed by perl.
* Viml: Make filter and map handle null list correctFlorianGit2017-12-03
| | | | | | | | | | | | | | | | | | | filter('v:_null_list, 'v:val') should return v:_null_list and a similar statement should hold for map. Changes after review * Test inserted in legacy test suite has been removed by reverting the commit adding it. * Change the fix to tv_copy the argument before returning. * Readd the two tests on crashes, and modified their expected return value. * Move the test from 'incorrect behaviour' section to 'correct behaviour section' * Add analogous tests for v:_null_dict Always copy list or dictionary to return variable If the type of input is correct (i.e. either a list or a dictionary), this should also be returned.
* compat: "v:count" distinct from "count" (#7407)Marco Hinz2017-11-09
|
* eval/decode.c: Avoid NULL arg to memchr() #7332Adrian Neumann2017-11-06
| | | | | | | Clang complains because memchr has undefined behavior if the ptr is NULL, even if len==0. Helped-by: Nikolai Aleksandrovich Pavlov <kp-pav@yandex.ru>
* test: server_spec: Tolerate missing protocol (#7478)James McCoy2017-11-02
| | | | | | | | | | | | | | | | | Travis disabled IPv6: [ RUN ] serverstart(), serverstop() parses endpoints correctly: FAIL ...build/neovim/neovim/test/functional/eval/server_spec.lua:83: Expected objects to be the same. Passed in: (table) { [1] = '127.0.0.1:12345' } Expected: (table) { [1] = '127.0.0.1:12345' *[2] = '::1:12345' } Change all tests to ensure a server was actually started before expecting it to be returned from serverlist().
* getcmdline_prompt: Temporarily disable msg_silent so prompt is displayedJames McCoy2017-10-14
| | | | | vim-patch:7.4.1636 Closes #7378
* functests: Remove wait() from input_specZyX2017-08-06
|
* Revert "functests: Replace wait() with nvim_async"ZyX2017-07-27
| | | | | | This reverts commit e129607988b88719935bc4af517e7ee2689f5871. Tests stopped working in CI.
* functests: Replace wait() with nvim_asyncZyX2017-07-26
|
* functests: Remove unneeded wait()sZyX2017-07-26
|
* Merge branch 'master' into colored-cmdlineZyX2017-07-15
|\