aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
Commit message (Collapse)AuthorAge
* startup: Use $XDG_CONFIG_DIRS/nvim/sysinit.vim if it existsJames McCoy2018-12-16
| | | | Closes #8994
* highlight: Fix missing .rgb_sp_color in initializers (#9287)Justin M. Keyes2018-11-30
| | | | | | | terminal_get_line_attributes() had this bug for a long time, though it likely had no effect visible to users. ref #9028 ref 60f845ca55a1
* jobstart(): Fix hang on non-executable cwd #9204Tommy Allen2018-11-07
| | | | | | | * os/fs.c: add os_isdir_executable() * eval.c: fix hang on job start caused by non-executable cwd option * channel.c: assert cwd is an executable directory * test: jobstart() produces error when using non-executable cwd
* win: test: SIGWINCH is noisy #7506Justin M. Keyes2018-11-01
|
* functionaltest: enable buffered output testsJan Edmund Lazo2018-10-31
|
* Fix crash if --embed is used more than onceJames McCoy2018-10-03
|
* test/win: job_spec: increase jobwait() timeoutJustin M. Keyes2018-09-05
| | | | | | | powershell is slow, and this timeout is "worst case" so it doesn't make the tests more costly, only avoids a false-positive. close #8958
* tests: introduce screen:expect{...} formBjörn Linse2018-08-27
|
* startup: delete empty stdin buffer if other files were openedJustin M. Keyes2018-06-18
| | | | | | | | | DWIM: avoid empty buffer 1 when stdin was empty. If other files were specified at startup, we assume that stdin is only accidentally not-a-TTY: user did not intend to send text from it. ref #8560 ref #8561
* startup: go to buffer 2 if stdin is emptyJustin M. Keyes2018-06-18
| | | | | | | | | | | | If stdin is not a TTY we read it into buffer 1, as text. But if the stdin pipe is empty, Nvim was most likely invoked for some other reason. DWIM: select buffer 2 (if it exists). Example: echo file1 | xargs nvim closes #8560 closes #8561 ref https://github.com/equalsraf/neovim-qt/issues/417
* startup: fix -E/-Es without `-u NONE`Justin M. Keyes2018-06-17
| | | | | | | | | | Before this change, -E/-Es without `-u NONE` reads stdin as Ex commands. It should always read stdin as text (into buffer 1), like this: echo foo | nvim -Es +'%p' foo echo foo | nvim -Es -u NORC +'%p' foo
* Ex mode: use getexline() instead of getexmodeline()Justin M. Keyes2018-06-17
| | | | | | | | | | | | | | | | | | | | | This changes Ex mode (Q, -e) to work like Vim's "improved Ex mode" (gQ, -E). That brings some small behavior differences, but should not impact most Ex scripts (unless, for example, they depend on mappings being disabled--but that can be solved for -e by skipping user config). Before this change: * the screen test hangs. After this change: * Q acts like gQ. * -e/-es differs from -E/-Es only in its treatment of stdin. This moves towards potentially removing getexmodeline(). (HINT: That does NOT mean "removing Ex mode", it means removing the Vi-compatible Ex mode, which differs from Vim's "improved Ex mode" only in some minor details (e.g. mappings are disabled).) ref #1089 :-)~
* test: fix startup_specJustin M. Keyes2018-06-10
| | | | | This behavior was changed (improved) by 5861dc596687 which actually makes -E more faithful to Vim's behavior.
* cleanup, test interactive -EJustin M. Keyes2018-06-04
|
* win/startup: remove --literalJustin M. Keyes2018-06-04
| | | | | | | | | | | | | | | Fixes 2 failing tests in startup_spec.lua. The Windows-only `--literal` option complicates support of "stdin-as-text + file-args" (#7679). Could work around it, but it's not worth the trouble: - users have a reasonable (and englightening) alternative: nvim +"n *" - "always literal" is more consistent/predictable - avoids platform-specific special-case Unrelated changes: - Replace fileno(stdxx) with STDXX_FILENO for consistency (not motivated by any observed technical reason).
* startup: allow explicit "-" file arg with --headlessJustin M. Keyes2018-06-04
|
* startup: fix -es/-Es so they are actually silentJustin M. Keyes2018-06-04
| | | | | | silent-mode (-es/-Es) has been broken for years. The workaround up to now was to include --headless. But --headless is not equivalent because it prints all messages, not the limited subset defined by silent-mode.
* startup: stdin as text instead of commandsJustin M. Keyes2018-06-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Treat stdin as text by default (so the "-" file is not needed): echo foo | nvim It works with file args (implemented in next commit), too: echo foo | nvim file1.txt file2.txt Why? Because: - Execution of input is (1) almost always unintentional/confusing, and (2) potentially destructive. - Avoids the need for time-delayed warning. #7659 - The _common_ case is to open text in a buffer, not send commands. Note: - Not for Ex-mode (-es) because it is used by scripts. But maybe `-Es`? - Not for --headless, because stdio may be a protocol stream and may be used for any purpose by stdioopen(). To treat stdin as Normal-mode commands, use `-s -` instead: echo ifoo | nvim -s - Other alternatives: - Replay a register. E.g. the following mostly works, except @q aborts on any "beep" (e.g. if the cursor can't move). nvim -c '%d q|norm @q' - - Future: Let `:%source` work with unsaved buffer contents? closes #2087 closes #7659
* channel: avoid references to non-rooted vimL list with outputBjörn Linse2018-05-17
| | | | | | | likely fixes #7768 #7913 If multiple internal stream callbacks were recieved before vimL callbacks got called, only invoke one vimL callback with all data.
* API: nvim__stats()Justin M. Keyes2018-04-24
| | | | Use it to verify fsync() behavior.
* test: fsync() codepathsJustin M. Keyes2018-04-23
|
* test: "Command-line option -s": avoid indeterminism (#8305)Justin M. Keyes2018-04-21
| | | closes #8303
* Merge #8276 'startup: Make -s - read from stdin'Justin M. Keyes2018-04-17
|\
| * win: Fix reading from stdinb-r-o-c-k2018-04-14
| | | | | | | | | | | | | | | | * Reading from stdin on Windows is fixed in the same way as it was in #8267. * The file_read function was returning without filling the destination buffer when it was called with a non-blocking file descriptor.
| * Merge branch 'master' into s-dash-stdinb-r-o-c-k2018-04-14
| |\
| * \ Merge branch 'master' into s-dash-stdinZyX2017-12-03
| |\ \
| * | | functests: Disable system(-s -) test on WindowsZyX2017-03-23
| | | | | | | | | | | | | | | | Assume something with system() if second test hangs as well. Assume something with reading stdin if not.
| * | | functests: Do not run termopen test on WindowsZyX2017-03-23
| | | |
| * | | functests: Test -s errorsZyX2017-03-19
| | | |
| * | | main: Temporary fix assertion errorZyX2017-03-19
| | | | | | | | | | | | | | | | | | | | This variant uses `fdopen()` which is not standard, but it fixes problem on my system. In next commit `scriptin` will use `FileDescriptor*` from os/fileio in place of `FILE*`.
| * | | functests: Do not check stdout, it is different on WindowsZyX2017-03-19
| | | |
| * | | functests: Fix testlint errorsZyX2017-03-19
| | | |
| * | | functests: Use Neovim instance and system() in place of lua io.popenZyX2017-03-19
| | | |
| * | | functests: Make sure that line ending is LF and not CRLFZyX2017-03-19
| | | |
| * | | functests: Alter the order of checksZyX2017-03-19
| | | | | | | | | | | | | | | | Check whether `repeated_read_cmd` returned nil and did not actually run nvim or it did, but still returned nil for whatever reason.
| * | | tests: Fix repeated_popen_r usage, rename the functionZyX2017-03-19
| | | |
| * | | tests: Fix CI failuresZyX2017-03-19
| | | |
| * | | functests: Check that `-s` works as expectedZyX2017-03-19
| | | |
* | | | Merge #8120 'test: win: prefer cmd.exe'Justin M. Keyes2018-04-15
|\ \ \ \ | |_|_|/ |/| | |
| * | | test: win: enable jobpid() testsJan Edmund Lazo2018-03-26
| | | | | | | | | | | | | | | | | | | | | | | | Use ping to test job detach Use find.exe as an alternative to cat.exe Use nvim_get_proc to check pid
| * | | fixup: ping.exe works with cmd.exe pipeJan Edmund Lazo2018-03-26
| | | |
| * | | Revert "test/win: use cmd.exe for test"Jan Edmund Lazo2018-03-26
| | | | | | | | | | | | | | | | | | | | | | | | This reverts commit ae409b5042abdbec67305a063cf921ddffcce0c8. This PR (#8120) defaults to cmd.exe for job_spec.lua
| * | | test: win: use find.exe /v "" as alternative cat -Jan Edmund Lazo2018-03-26
| | | |
| * | | test: win: try stderr callback and slow outputJan Edmund Lazo2018-03-26
| | | |
| * | | test: win: use powershell for Start-Sleep onlyJan Edmund Lazo2018-03-26
| | | | | | | | | | | | | | | | | | | | | | | | cmd.exe (shell) is faster and more reliable than powershell (.NET frontend). It's best for short and basic tests that don't require non-trivial scripting. cmd.exe doesn't support sleep so use powershell's Start-Sleep as substitute.
* | | | channels: delay free so that libuv can cleanup handlesBjörn Linse2018-04-12
|/ / / | | | | | | | | | add test for a crash this caused
* | | test: lua test for vim-patch:8.0.0184Nimit Bhardwaj2018-03-24
| | | | | | | | | | | | https://github.com/vim/vim/commit/2b7bc567b9238aaac682236cb4f727d0376e1302
* | | test/win: use cmd.exe for testJustin M. Keyes2018-03-18
| | | | | | | | | | | | Can revert this after #8120.
* | | test: jobstop() kills entire process treeJustin M. Keyes2018-03-18
| | | | | | | | | | | | | | | Test correctly fails before 8d90171f8be6. ref #6530
* | | test: rename next_message() to next_msg()Justin M. Keyes2018-03-11
| | |