aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
Commit message (Collapse)AuthorAge
* Merge pull request #8031 from bfredl/gotintstatusBjörn Linse2018-02-20
|\ | | | | jobwait: return -2 on interrupt even with timeout
| * jobwait: return -2 on interrupt also with timeoutBjörn Linse2018-02-20
| |
* | Resolve issues mentioned in PR reviewJan Edmund Lazo2018-02-19
| |
* | win: enable job tests that use jobstart onlyJan Edmund Lazo2018-02-19
| | | | | | | | | | | | | | | | | | | | | | | | - echo "" does not hang in powershell - cmd.exe's echo command does not hang. - job tests default to powershell (WHY?) - wait 5 seconds for powershell to create an empty file - powershell is slow - cannot reliably validate the id returned by jobstart via jobpid, jobstop - if using cmd.exe, waiting for a second should be enough - remaining job tests are unreliable in Windows because any build can pass/fail for same conditions without changes, especially if the error is in stderr
* | test/util: expect_msg_seq()Justin M. Keyes2018-02-18
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | job_spec.lua on AppVeyor (Windows) often fails like this: FAILED ] C:/projects/neovim/test/functional\core\job_spec.lua @ 72: jobs changes to given `cwd` directory C:/projects/neovim/test/functional\core\job_spec.lua:81: Expected objects to be the same. Passed in: (table) { [1] = 'notification' [2] = 'stdout' *[3] = { [1] = 0 *[2] = { [1] = 'C:\projects\neovim\Xtest-tmpdir\nvimmSjq1S\0' } } } Expected: (table) { [1] = 'notification' [2] = 'stdout' *[3] = { [1] = 0 *[2] = { [1] = 'C:\projects\neovim\Xtest-tmpdir\nvimmSjq1S\0' *[2] = '' } } } stack traceback: Message chunking is non-deterministic, so we need to try different variants.
* test/win: fix some environment assumptions #7912George Zhao2018-01-28
| | | | | fix #7909 fix #7910
* channel: check for existance before trying to set keyBjörn Linse2017-12-23
| | | | This avoids an error message in async context, where it is not safe.
* tests: mark flaky socket test pending for nowBjörn Linse2017-11-27
|
* channels: testsBjörn Linse2017-11-26
|
* test: startup_spec: cmd.exe escapingJustin M. Keyes2017-11-04
|
* test: has("ttyin"), has("ttyout")Justin M. Keyes2017-11-04
|
* :cquit : take an error code argument #7336Josh Leeb-du Toit2017-10-22
| | | | | | | | | | closes #2699 ex_cmds.lua: use flags consistent with similar commands such as `cnext`. upstream discussion: "[patch] :qcuit can take exit code" https://groups.google.com/d/msg/vim_dev/_PjyNbUKyRc/oPgr5_ZXc6AJ
* test: avoid extra clear() callsJustin M. Keyes2017-10-02
| | | | also: various other cleanup
* win: vim_FullName(): force backslashes #7287Ignas Anikevicius2017-10-02
| | | | | | | | | - Replace obvious cases of '/' literal with PATHSEP. (There are still some remaining cases that need closer inspection.) - Fixup tests: ui/screen_basic closes #7117 ref https://github.com/neovim/neovim/issues/2471#issuecomment-271193714
* Repair job_spec functional testsDrew Neil2017-08-21
|
* test: job_spec.lua: disable shada in test instanceJustin M. Keyes2017-08-04
|
* functests: Replace execute with either command or feed_commandZyX2017-04-09
| | | | | | | | | | Hope this will make people using feed_command less likely: this hides bugs. Already found at least two: 1. msgpackparse() will show internal error: hash_add() in case of duplicate keys, though it will still work correctly. Currently silenced. 2. ttimeoutlen was spelled incorrectly, resulting in option not being set when expected. Test was still functioning somehow though. Currently fixed.
* test: Use workspace-local temp directory.Justin M. Keyes2017-03-30
| | | | Closes #6291
* job-control: set CLOEXEC on pty processes. #5986Matthew Malcomson2017-03-17
| | | | | Before this change, new processes started with libuv prevented SIGHUP from reaching pty processes (by keeping the ptmx file descriptor open).
* win: test: Fix closure jobs test on WindowsJames McCoy2017-02-23
|
* Allow lambdas to be used with jobs, timers and dictwatchers.Michael Ennen2017-02-14
|
* win: test: Enable jobstart() 'shell' test. (#5983)Justin M. Keyes2017-01-21
|
* win: test: XXX: Disable some tests.Justin M. Keyes2017-01-19
|
* win: fix warningsJustin M. Keyes2017-01-19
|
* win: test: enable job_spec.luaJustin M. Keyes2017-01-19
| | | | | | | | | | - Default to powershell. - Avoid hardcoded "-c". - Remove ^M character from received lines. - pending_win32(): clear() is unnecessary and it pollutes the tests. Closes #3973 Helped-by: Rui Abreu Ferreira <raf-ep@gmx.com>
* job: Consume content from rbuffer before invoking the callback againJames McCoy2017-01-14
| | | | | | | | | | While a job callback is active, it may be invoked again. Since the data handled by the first invocation of the callback hasn't been marked as consumed, the subsequent invocation will see the same data. Reported-by: Daniel Hahler Patch-by: oni-link Closes #5889
* Windows: enable more testsJustin M. Keyes2017-01-13
|
* 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)
* 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
|
* 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
|
* test: jobstart()Justin M. Keyes2016-12-11
|
* jobstart(): Return -1 if cmd is not executable. #5671Aaron Williamson2016-12-10
| | | | Closes #5465
* test: Handle SIGHUP in tty-test fixture.Justin M. Keyes2016-12-07
| | | | Closes #5727
* Tests: add tests for v:exitingMarco Hinz2016-12-01
|
* jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619Björn Linse2016-11-17
|
* test: :terminal should not interrupt Press-ENTERJustin M. Keyes2016-10-20
| | | | References #2748
* CI: Travis macOS: Skip tab left-drag tests.Justin M. Keyes2016-09-12
| | | | | | These tests fail on master, so it's not a regression. Changes in #4874 (parent commit) seem to work (and pass most CI), so skipping these tests is better than blocking the changes.
* functionaltest: Create lua helper for os.tmpname()Rui Abreu Ferreira2016-08-31
| | | | | | | | | | | | | | | In Windows Lua's os.tmpname() returns relative paths starting with \s, prepend them with $TEMP to generate a valid path. In OS X os.tmpname() returns paths in '/tmp' but they should be in '/private/tmp'. We cannot use os_name() for platform detection because some tests use tempname() before nvim is spawned, instead use one of the following: 1. Set SYSTEM_NAME environment variable before calling the tests, it is set from CMAKE_SYSTEM_NAME(i.e. uname -s or 'Windows') 2. Call uname -s 3. Assume windows
* Mark some functional tests as pending in WindowsRui Abreu Ferreira2016-08-26
|
* job control: reuse common job code for rpc jobsBjörn Linse2016-08-20
| | | | This makes stderr and exit callbacks work for rpc jobs
* XXX: CI: Disable hanging test on Travis OSX.Justin M. Keyes2016-08-09
| | | | | | | | | | | | Temporary change to avoid frequent hangs on Travis macOS/OSX builds. Hang does not occur on Quickbuild OSX (Yosemite) build. Reverting e9061117a5b8f195c3f26a5cb94e18ddd7752d86 avoids the hang, but causes more serious regressions on many more systems. Note that the job_spec hang only happens with the gcc-4.9 Travis OSX build. References #5002 References #5029
* test: PTY descendants should not prevent exit.Justin M. Keyes2016-07-16