Commit Graph

14247 Commits

Author SHA1 Message Date
Daniel Hahler
376d394981 vim-patch:8.1.1893: script to summarize test results can be improved
Problem:    Script to summarize test results can be improved.
Solution:   Use "silent" for substitute to avoid reporting number of matches.
            Remove duplicate "set nocp". (Daniel Hahler, closes vim/vim#4845)
f1e0544d41
2019-08-22 05:06:30 +02:00
Daniel Hahler
356f5fc6e2 vim-patch:8.1.1478: still an error when running tests with the tiny version
Problem:    Still an error when running tests with the tiny version.
Solution:   Do not try reading test.log
18250e291a
2019-08-22 05:06:30 +02:00
Daniel Hahler
6970225af6 vim-patch:8.1.1477: test summary fails in the tiny version
Problem:    Test summary fails in the tiny version.
Solution:   set 'nocompatible'.
c7500f9cb5
2019-08-22 05:06:30 +02:00
Daniel Hahler
542fbb34a1 vim-patch:8.1.1488: summary of tests has incorrect failed count
Problem:    Summary of tests has incorrect failed count.
Solution:   Add to the failed count instead of setting it. (Christian Brabandt)
150f0550f4
2019-08-22 05:06:30 +02:00
Daniel Hahler
72f453d149 vim-patch:8.1.1476: no statistics displayed after running tests
Problem:    No statistics displayed after running tests.
Solution:   Summarize the test results. (Christian Brabandt, closes vim/vim#4391)
            Also make it possible to report a skipped file.
9c0cec65f8

Removes our custom no-inits from `$(RUN_VIMTEST)`, since we have
`$(NO_INITS)` now also.
2019-08-22 05:06:30 +02:00
Daniel Hahler
9e24bbb52f vim-patch:8.1.1483: skipped tests are not properly listed
Problem:    Skipped tests are not properly listed.
Solution:   Throw a "Skipped" exception instead of using ":finish" or ":return".
5d30ff1964

Skips quite some (N/A) tests.

vim-patch:8.1.0503: missing change to diff test (included in cf1ffa916)
2019-08-22 05:06:30 +02:00
Daniel Hahler
77729b0800 vim-patch:8.1.0811: too many #ifdefs
Problem:    Too many #ifdefs.
Solution:   Graduate FEAT_MBYTE, the final chapter.
30276f2beb
2019-08-22 05:06:30 +02:00
erw7
3223dedfc3 test: fix problem of breaking user's viminfo (#10824)
Vim turns on 'compatible' as a side effect of using the -u command line
option. As a result, viminfo is not used. But that is not the case with
neovim. neovim requires the -i command line option to avoid breaking
user's viminfo.
2019-08-22 05:06:14 +02:00
Justin M. Keyes
86c182c9df
Merge #10823 from janlazo/vim-8.1.1124 2019-08-21 23:43:01 +02:00
Daniel Hahler
fc12ada4f1
ci: AppVeyor: exitIfFailed with old tests (#10187) 2019-08-21 21:54:03 +02:00
Abdelhakeem Osama
450a68b7cc vim-patch:8.1.0888: the a: dict is not immutable as documented (#10819)
Problem:    The a: dict is not immutable as documented.
Solution:   Make the a:dict immutable, add a test. (Ozaki Kiichi, Yasuhiro
            Matsumoto, closes vim/vim#3929)
31b816042f
2019-08-21 20:17:09 +02:00
Jan Edmund Lazo
396772c73b
edit: add nonnull func attribute 2019-08-21 01:16:32 -04:00
Jan Edmund Lazo
332d844e5e
edit: compl_started,compl_used_match are bool 2019-08-21 01:16:32 -04:00
Jan Edmund Lazo
3c28d75652
vim-patch:8.1.1124: insert completion flags are mixed up
Problem:    Insert completion flags are mixed up.
Solution:   Clean up flags use of ins_compl_add() and cp_flags.
d9eefe3155
2019-08-21 01:16:31 -04:00
Daniel Hahler
0e8ee37efd
Merge pull request #10821 from blueyed/asan
tests: improve escaping of special chars, forward all sanitizer options
2019-08-21 03:21:50 +02:00
Daniel Hahler
e5b2423fa1 fixup! test/functional/helpers.lua: env: forward also TSAN_OPTIONS/MSAN_OPTIONS 2019-08-21 02:44:27 +02:00
Daniel Hahler
3bf0d54bc1 test/functional/helpers.lua: env: forward also TSAN_OPTIONS/MSAN_OPTIONS 2019-08-21 02:39:10 +02:00
Daniel Hahler
d993ec5db8 src/nvim/testdir/runnvim.vim: improve escaping of non-printables 2019-08-21 02:39:10 +02:00
Daniel Hahler
47e27a4f5b
tests: support msg with global_helpers.ok (#10820)
Ref: https://github.com/neovim/neovim/pull/10768#discussion_r315904175

Co-Authored-By: Justin M. Keyes <justinkz@gmail.com>
2019-08-21 02:32:20 +02:00
Daniel Hahler
7adea68c1e
oldtest: windows: revert setting shellslash individually (#10189)
* Revert "oldtests: win: shellslash for cdpath,tags,:find"

This reverts commit 6245b4873d.

* Revert "oldtests: set shellslash for ":cd" test"

This reverts commit eba1ebafe5.

* Revert "oldtests: set shellslash in Test_shellescape()"

This reverts commit e428fc4b52.

* Revert "fixup! vim-patch:8.0.1782: no simple way to label quickfix entries"

This reverts commit ac1fbc2860.

* Revert "test/old: pass Test_statusline on Windows"

This reverts commit 6efa3bff09.

* Revert "oldtests: set shellslash for Test_non_zero_arg"

This reverts commit 42e1e2495c.

* Revert "oldtests: set shellslash in Test_true_false_arg()"

This reverts commit 8bd194f98a.

* Remove unnecessary set shellslash

Since #10679 no longer requires individual set shellslash, it is removed.


Co-Authored-By: erw7 <erw7.github@gmail.com>
2019-08-20 22:01:58 +02:00
Daniel Hahler
09397e5d05
Merge pull request #10768 from blueyed/tests-shorter-timers
tests: timer_spec: lower timeout, avoids flakiness
2019-08-20 20:22:55 +02:00
Daniel Hahler
2755403429
Merge pull request #10818 from blueyed/minor
Minor: .gitignore, improve test assertion message
2019-08-20 20:18:10 +02:00
Anciety
e097e4704b win: stream: reset tty stream on close
This was overlooked in 8072f085d2.

Analogous to 8a782f1699.

fix #10668
ref 8072f085d2 #9884
ref 8a782f1699 #2377
2019-08-20 20:14:13 +02:00
Daniel Hahler
222717c95c tests: screen: notification_cb: improve assertion message 2019-08-20 19:24:57 +02:00
Daniel Hahler
6bb24b45f8 .gitignore: src/nvim/testdir/*.tlog 2019-08-20 19:24:55 +02:00
Daniel Hahler
7ed2122622
test/functional/ui/mode_spec: improve "ui mode_change event" (#10816)
Set a shorter `&matchtime` (instead of asserting the default), and do
not sleep - `screen:expect` will do that (wait for it).
2019-08-20 17:43:13 +02:00
Daniel Hahler
b2c354bb07 tests: screen: notification_cb: improve assertion message 2019-08-20 04:54:29 +02:00
Daniel Hahler
9e04e19574 tests: timer_spec: lower timeout, avoids flakiness
Inspired by quickbuild failure, where `g:val` was increased already:

    20:07:04,227 INFO  - not ok 1164 - timers works with repeat two
    20:07:04,227 INFO  - # test/functional/eval/timer_spec.lua @ 36
    20:07:04,227 INFO  - # Failure message: test/functional/eval/timer_spec.lua:38: Expected objects to be the same.
    20:07:04,227 INFO  - # Passed in:
    20:07:04,227 INFO  - # (number) 1
    20:07:04,227 INFO  - # Expected:
    20:07:04,227 INFO  - # (number) 0
    20:07:04,227 INFO  - # stack traceback:
    20:07:04,227 INFO  - #     test/functional/eval/timer_spec.lua:38: in function <test/functional/eval/timer_spec.lua:36>

Uses a pattern of `eq()`ing `timer_start` and `g:val` in the same `eval`
call, and decreases timeouts in general.

Improves runtime from ~5s to <2s.
2019-08-20 04:54:28 +02:00
Daniel Hahler
57e19ea846
Merge pull request #10814 from janlazo/vim-8.1.1887
vim-patch:8.1.{1887,1890}
2019-08-20 04:52:56 +02:00
Jan Edmund Lazo
ec9b57cb6e
vim-patch:8.1.1890: ml_get error when deleting fold marker
Problem:    Ml_get error when deleting fold marker.
Solution:   Check that the line number is not below the last line.  Adjust the
            fold when deleting the empty line.  (Christian Brabandt,
            closes vim/vim#4834)
9a4a8c4d59
2019-08-19 21:32:24 -04:00
Jan Edmund Lazo
419c946f03
vim-patch:8.1.1887: the +cmdline_compl feature is not in the tiny version
Problem:    The +cmdline_compl feature is not in the tiny version.
Solution:   Graduate the +cmdline_compl feature.
0a52df50a0
2019-08-19 20:14:42 -04:00
Daniel Hahler
7fa49627e5
src/nvim/README: revisit sanitizer section [ci skip] (#10780) 2019-08-20 02:05:36 +02:00
Daniel Hahler
46cb85691c
Merge pull request #10626 from janlazo/test/enable
Windows: enable more tests
2019-08-19 13:21:17 +02:00
Jan Edmund Lazo
47d679c0c2
tests: win: enable buffer focus test 2019-08-18 21:40:27 -04:00
Jan Edmund Lazo
cb11de18a2
test: win: enable WinEnter terminal test 2019-08-18 21:40:27 -04:00
Jan Edmund Lazo
a5b915e56c
test: win: enable output_spec test 2019-08-18 21:40:26 -04:00
Julian Berman
2963533fe1 Unreserve :X #10807
closes #10806
2019-08-18 19:28:13 +02:00
Justin M. Keyes
ce9367c254
CI/AppVeyor: revert "skip MSVC_32 for non-PR" [skip travis] #10805
Revert commit bfbc1a7872.

The nightly release job is failing:
https://travis-ci.org/neovim/bot-ci/builds/569687794

- We need the MSVC artifact on master so that our nightly job can publish it.
- Saving time on master is low-priority because most CI activity is from PRs.
2019-08-18 17:26:20 +02:00
Björn Linse
9bbac874f9
Merge pull request #10798 from bfredl/multifix
multigrid: fixes
2019-08-18 13:52:59 +02:00
Björn Linse
628f8f3dfd ui: transmit "blend=" property of highlight attributes 2019-08-18 13:52:32 +02:00
Justin M. Keyes
d351f1c871
Merge #10679 from erw7/fix-oldtest-on-windows 2019-08-18 13:31:28 +02:00
Justin M. Keyes
c5efa9c352
Merge #10800 from janlazo/vim-8.1.1870
vim-patch:8.1.{1679,1839,1870}
2019-08-18 13:05:17 +02:00
Edd Barrett
b7ce589cb8 CI/OpenBSD: run oldtest #10797
- Test_libcall_libcallnr: pass libc name to dlopen.
2019-08-18 12:44:05 +02:00
erw7
3453a2ccb0 Change to use v:progpath instead of constant [skip ci] 2019-08-18 10:54:48 +09:00
Jan Edmund Lazo
454adf15db
vim-patch:8.1.1839: insufficient info when test fails because of screen size
Problem:    Insufficient info when test fails because of screen size.
Solution:   Report the detected screen size.
0b5dc64446
2019-08-17 18:32:40 -04:00
Jan Edmund Lazo
eb3ec78c63
vim-patch:8.1.1679: test using SwapExists autocommand file may fail
Problem:    Test using SwapExists autocommand file may fail.
Solution:   Remove the SwapExists autocommand.
eaa49e40d7
2019-08-17 18:22:56 -04:00
Jan Edmund Lazo
0a1807ea25
vim-patch:8.1.1870: using :pedit from a help file sets help filetype
Problem:    Using :pedit from a help file sets the preview window to help
            filetype. (Wang Shidong)
Solution:   Do not set "keep_help_flag". (closes vim/vim#3536)
026587b35c
2019-08-17 18:11:05 -04:00
Björn Linse
6b2d67eb59 test/ui: properly test win_hide by explicitly marking hidden grids 2019-08-17 21:46:11 +02:00
Björn Linse
3397b8c51a ui: use Window type in win_pos consistently with win_float_pos
Also check invalid positional arguments to screen:expect()
2019-08-17 20:52:08 +02:00
Justin M. Keyes
e2ccf47b5e
Merge #10794 from janlazo/vim-8.1.1857
vim-patch:8.1.{1857,1858,1860}
2019-08-17 08:49:05 +02:00