ZyX
9cad5155e3
functests: Make sure funcs.luaeval receives only one argument
2017-04-11 01:18:42 +03:00
Justin M. Keyes
0ce9618918
test/rmdir(): Remove readonly
attr on Windows.
2017-04-10 22:59:30 +02:00
ZyX
ab4d13e2fa
Merge branch 'master' into luaviml'/lua
2017-04-10 22:21:06 +03:00
Justin M. Keyes
fec53f0bdf
Merge #6479 from bfredl/tolower
...
remove vim_tolower/etc functions with broken locale-dependent behavior
2017-04-10 15:23:44 +02:00
Justin M. Keyes
dd7f41e5a0
Merge #6488 from ZyX-I/coverity-fixes
2017-04-10 14:04:19 +02:00
Björn Linse
a3a06d0248
test: add tests for gu/gU behavior in Turkish locale
2017-04-10 12:02:25 +02:00
ZyX
fa7ace446e
coverity/56795: Fix NULL dereference in :syn keyword non-printable
...
Bug was introduced 3 years earlier, in 13848aa
: NULL keyword_copy was
incorrectly treated as an indicator of OOM.
2017-04-09 23:38:05 +03:00
ZyX
35584594f5
coverity/13689: Check file header with memcmp
...
Not that it is actually useful (would fail in any case), but should fix coverity
report.
2017-04-09 22:30:48 +03:00
ZyX
8f75b67c07
coverity/13688: Check for NUL bytes in salfrom
2017-04-09 22:16:26 +03:00
ZyX
ecce981dba
coverity/13687: Do not allow NUL byte in region names
2017-04-09 22:02:51 +03:00
ZyX
5b4f07ee86
spellfile: Use old error
...
This makes first test not actually show any change in behaviour.
2017-04-09 22:02:51 +03:00
ZyX
8d982ab522
coverity/13686: Do not allow NUL byte in precondition regex
...
Before this commit it emitted e_spell_trunc in the first case and
treated file as completely valid on the second. While first is fine
(both errors are actually valid, though old error is probably better),
second results in incorrect regex used.
2017-04-09 22:02:36 +03:00
ZyX
dbe67868b5
Merge branch 'master' into rename-execute
2017-04-09 19:14:20 +03:00
Justin M. Keyes
26bf6e6f6f
test/check_cores(): Skip workspace-local temp dir. ( #6483 )
...
Avoids this error:
./test/helpers.lua:27: cannot open ./Xtest-tmpdir/nvimfqH9dL: No such file or directory
stack traceback:
./test/helpers.lua:27: in function 'glob'
./test/helpers.lua:195: in function 'check_cores'
./test/functional/helpers.lua:628: in function <./test/functional/helpers.lua:626>
2017-04-09 15:49:31 +02:00
Justin M. Keyes
699e8406b5
Merge #6439 from ZyX-I/fix-gc-failures
...
unittests: Force GC, fix GC failures in typval_spec
2017-04-09 04:05:07 +02:00
Justin M. Keyes
cc8f640fb1
Merge #6478 from ZyX-I/conv-fixes
...
Remove conversions which are not needed when &encoding is UTF-8
2017-04-09 03:59:55 +02:00
ZyX
967fa96eb2
unittests: Fix linter error
2017-04-09 03:39:37 +03:00
ZyX
8990490b50
unittests: Move allocating vimconv_T to a function
2017-04-09 03:36:18 +03:00
ZyX
233e71419e
unittests: Do not GC typval_T which is owned by a di
2017-04-09 03:36:18 +03:00
ZyX
bac870433b
unittests: Do not unref partial which is owned by Callback structure
2017-04-09 03:36:17 +03:00
ZyX
44cd4e63f5
unittests: Use Neovim memory allocation for vimconv_T
...
Not sure whether this is going to fix things though, but core dump does not
contain Neovim functions in stack in this case.
2017-04-09 03:36:17 +03:00
ZyX
94c1af7c41
unittests: Do not gc what is already freed
2017-04-09 03:36:17 +03:00
ZyX
f5be643205
functests: Fix linter errors
2017-04-09 03:31:13 +03:00
ZyX
0ac2afdec7
functests: Fix some ui/*_spec tests
2017-04-09 03:24:26 +03:00
ZyX
ddaa41dee4
functests: Fix ui/bufhl_spec
2017-04-09 03:24:26 +03:00
ZyX
88ea362c70
functests: Fix ui/screen_basic_spec
2017-04-09 03:24:23 +03:00
ZyX
ba7d8bf0c2
functests: Fix terminal/highlight_spec
2017-04-09 03:24:22 +03:00
ZyX
e0560a0f3f
functests: Fix terminal/cursor_spec
...
It looks like Neovim has a bug: if `startinsert` is called using `command()`
then `-- TERMINAL --` gets replaced with `-- --` (and also a cursor appears).
2017-04-09 03:24:21 +03:00
ZyX
444cab3731
functests: Fix legacy/wordcount_spec
...
Another test where bug was hidden by execute().
2017-04-09 03:24:21 +03:00
ZyX
bd84bf8c81
functests: Fix legacy/eval_spec
2017-04-09 03:24:20 +03:00
ZyX
e170186a8d
functests: Fix legacy/close_count_spec
2017-04-09 03:24:20 +03:00
ZyX
bc98c37532
functests: Fix legacy/autocmd_option_spec
2017-04-09 03:24:19 +03:00
ZyX
a3b0146fb7
functests: Fix legacy/arglist_spec
2017-04-09 03:24:19 +03:00
ZyX
2824eb7774
functests: Fix legacy/107_adjust_window_and_contents_spec
2017-04-09 03:24:18 +03:00
ZyX
5fd8f637af
functests: Fix legacy/097_glob_path_spec
2017-04-09 03:24:18 +03:00
ZyX
9a0c921909
functests: Fix legacy/096_location_list_spec
2017-04-09 03:24:17 +03:00
ZyX
d53fae5f54
functests: Fix legacy/067_augroup_exists_spec
2017-04-09 03:24:15 +03:00
ZyX
69d1003bf7
functests: Fix some tests which are failing locally for unrelated reasons
2017-04-09 03:24:14 +03:00
ZyX
c35bd4d074
functests: Fix legacy/074_global_var_in_viminfo_spec
2017-04-09 03:24:13 +03:00
ZyX
4da4d5cfd9
functests: Fix legacy/065_float_and_logic_operators_spec
2017-04-09 03:24:12 +03:00
ZyX
cb57644cb4
functests: Fix legacy/063_match_and_matchadd_spec
2017-04-09 03:24:10 +03:00
ZyX
b3b31e1065
functests: Fix legacy/062_tab_pages_spec
2017-04-09 03:24:10 +03:00
ZyX
ed0ad7ce3e
functests: Fix legacy/051_highlight_spec test
2017-04-09 03:24:09 +03:00
ZyX
a1b81f7eca
functests: Fix legacy/030_fileformats_spec test
...
For some reason it had a number of not working bwipeout! commands. execute()
successfully hid the failures, command() is not that permissive.
2017-04-09 03:24:09 +03:00
ZyX
65fb622000
functests: Replace execute with either command or feed_command
...
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.
2017-04-09 03:24:08 +03:00
Justin M. Keyes
a34408ef7f
test: retry(): Report number of retries. ( #6475 )
...
tui_spec.lua: Retry the terminal-mode test.
2017-04-09 02:11:08 +02:00
ZyX
9158cc171f
functests: Refactor options/pastetoggle
...
Note: typo, ttimeoutlen not set ever.
Mention @hardenedapple
2017-04-08 23:48:22 +03:00
ZyX
dd93733e52
functests: Refactor legacy/054_buffer_local_autocommands_spec
2017-04-08 22:33:02 +03:00
ZyX
cca029bc8d
functests: Refactor legacy/003_cindent_spec and legacy/increment_spec
2017-04-08 22:17:39 +03:00
ZyX
7766b24f3c
functests: Refactor legacy/018_unset_smart_indenting_spec
2017-04-08 22:02:44 +03:00