ZyX
7df4fc8941
functests: Test -s errors
2017-03-19 18:53:21 +03:00
ZyX
e78e75d85d
fileio,main: Do not restart syscall at EAGAIN when reading for -s
2017-03-19 17:29:48 +03:00
ZyX
fdfa1ed578
main: Temporary fix assertion error
...
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*`.
2017-03-19 16:09:48 +03:00
ZyX
d2268d5ebb
functests: Do not check stdout, it is different on Windows
2017-03-19 14:13:21 +03:00
ZyX
29654cfee7
functests: Fix testlint errors
2017-03-19 14:13:21 +03:00
ZyX
d4639ea6d9
functests: Use Neovim instance and system() in place of lua io.popen
2017-03-19 14:13:21 +03:00
ZyX
38687ee394
functests: Make sure that line ending is LF and not CRLF
2017-03-19 14:13:21 +03:00
ZyX
1ea7541f65
functests: Alter the order of checks
...
Check whether `repeated_read_cmd` returned nil and did not actually run nvim or
it did, but still returned nil for whatever reason.
2017-03-19 14:13:21 +03:00
ZyX
3cd7bf31e2
tests: Fix repeated_popen_r usage, rename the function
2017-03-19 14:13:21 +03:00
ZyX
0e9286a19e
tests: Fix CI failures
2017-03-19 14:13:21 +03:00
ZyX
0320a58082
functests: Check that -s
works as expected
2017-03-19 14:13:21 +03:00
Björn Linse
6a68a922b8
clipboard: set v:register after startup ( #5708 )
...
Fixes #5697
2017-03-18 19:33:25 +01:00
Matthew Malcomson
9abef7ded9
test/put_spec: 2x speedup ( #6294 )
...
Instead of helpers.clear() between each test, use execute('enew!')
and ensure the state that matters is reset between each test.
2017-03-18 01:59:51 +01:00
Jack Bracewell
2ea7bfc627
terminal: Support extra arguments in 'shell'. #4504
...
Tokenize p_sh if used as default in ex_terminal(). Previously p_sh was
used as the first arg in a list when calling termopen(), this would try
to call an untokenized version of shell, meaning if you had an argument
in 'shell':
set shell=/bin/bash\ --login
the command would fail.
Helped-by: oni-link <knil.ino@gmail.com >
Closes #3999
2017-03-17 17:47:33 +01:00
Justin M. Keyes
0c1f783164
Merge #6087 from justinmk/defaults
...
defaults: 'ruler', 'showcmd', 'belloff=all'
2017-03-17 13:00:19 +01:00
Matthew Malcomson
f6946c68ae
job-control: set CLOEXEC on pty processes. #5986
...
Before this change, new processes started with libuv prevented SIGHUP
from reaching pty processes (by keeping the ptmx file descriptor open).
2017-03-17 12:20:51 +01:00
John Szakmeister
694edc5504
test: fix the unit test build on macOS Sierra ( #6300 )
...
We need to add the SDK includes to the preprocessing step, otherwise it
will fail to resolve the system includes such as sys/stat.h and fcntl.h.
2017-03-17 09:14:56 +01:00
Justin M. Keyes
a90beeadbb
defaults: 'showcmd', 'belloff', 'ruler'
...
- Vim "unix default" of 'noshowcmd' is serving few users. And it's
inconsistent.
- 'ruler' and 'belloff=all' improve the out-of-the-box experience.
- Continue to use 'noshowcmd' and 'noruler' by default in the functional
tests to keep them fast.
TODO: Add a "disable slow stuff" command or mapping to address the
use-case of a very slow terminal connection.
2017-03-16 18:44:10 +01:00
John Szakmeister
3c8d974f73
unittests: avoid using pattern matching on file names
...
The directory name could contain special characters that trips up the
matching used by find. Instead, let's just make sure that the filename
starts with the directory name.
2017-03-16 06:58:15 -04:00
Justin M. Keyes
40cc49c5da
test/termclose: Avoid indeterminism ( #6281 )
2017-03-15 23:28:37 +01:00
Björn Linse
9500ecdda5
api: add detailed checks for compatibility and correct "since" value
2017-03-15 15:01:06 +01:00
Björn Linse
82f55503dd
api: add api_level_1 fixure
2017-03-15 15:01:06 +01:00
Justin M. Keyes
ec4e84210b
Merge #6254 'vim-patch:7.4.2135,7.4.2144,7.4.2151'
2017-03-15 14:10:56 +01:00
Justin M. Keyes
c5e61b41a5
DirChanged: avoid redundant events on 'autochdir'
2017-03-12 15:45:50 +01:00
Justin M. Keyes
d9fcbc2cfb
DirChanged: trigger when switching scopes
...
Closes #6054
2017-03-12 14:39:32 +01:00
Justin M. Keyes
99a1a58c66
DirChanged: Publish _after_ updating win/tab CWD.
...
So getcwd() works correctly during DirChanged event.
Closes #6260
2017-03-12 14:39:32 +01:00
ZyX
48e7a83447
unittests: Fix linter error
2017-03-12 04:20:31 +03:00
ZyX
def52ad668
tests: Add description of test directory structure and test env vars
2017-03-12 04:18:15 +03:00
ZyX
d559fe6e93
unittests: Allow running ffi.cdef
in the main process
2017-03-12 03:14:34 +03:00
ZyX
a7f64ba517
unittests: Move filtering cdefs to main process
2017-03-12 03:02:14 +03:00
ZyX
bf68907778
unittests: Use more adequate names for some functions
2017-03-12 02:54:23 +03:00
ZyX
9d1b439fb7
tests: Allow lfs.attributes to be NULL when traversing FS
2017-03-12 00:25:55 +03:00
ZyX
8ef6cfa6ac
unittests: Fix linter errors
2017-03-11 23:48:16 +03:00
ZyX
a54be846cf
unittests: Update test/unit/message_spec.lua
2017-03-11 23:26:33 +03:00
ZyX
ec730daee9
unittests: Do not use which, add data to paths.lua.in instead
2017-03-11 23:23:50 +03:00
ZyX
ce12bda712
unittests: Always close all pipes
2017-03-11 23:23:49 +03:00
ZyX
e2a578f40d
unittests: Do not import libnvim or headers in main process
...
Slows down unit tests much, but gets rid of as much preserved state as possible.
2017-03-11 23:23:49 +03:00
ZyX
9400466282
unittests: Check core dumps in after_each, like in functests
2017-03-11 23:23:49 +03:00
ZyX
12b062b2c8
unittests: Run all unit tests in their own processes
...
Used
sed -r -i -e '/ helpers =/ s/$/\nlocal itp = helpers.gen_itp(it)/; s/^(\s*)it\(/\1itp(/' test/unit/**/*_spec.lua
to alter all tests. Locally they all run fine now.
Reasoning:
1. General: state from one test should not affect other tests.
2. Local: travis build is failing with something which may be an output of
garbage collector. This should prevent state of the garbage collector from
interferring as well.
2017-03-11 23:23:30 +03:00
ZyX
5898b42d82
unittests: Do not run failing test at all
2017-03-11 23:23:30 +03:00
ZyX
29ed5b3a39
unittests: Fix lint errors
2017-03-11 23:23:30 +03:00
ZyX
b442574862
unittests: Allow failing test to fail
2017-03-11 23:23:30 +03:00
ZyX
ff5dca6630
unittests: Log syscalls if requested
2017-03-11 23:23:30 +03:00
ZyX
1edb3ccc36
unittests: Use own bindings to libc syscall wrappers
2017-03-11 23:23:30 +03:00
ZyX
3adecd3ede
unittests: Do not use syscall library: does not work well with cimport
2017-03-11 23:23:30 +03:00
ZyX
9f29a76cab
unittests: Try using syscall library instead (ffi-based)
2017-03-11 23:23:30 +03:00
ZyX
b92d6aaf0d
unittests: Pause garbage collector while executing tests
...
Temporary (?) workaround for currently failing check_alloc_log tests.
2017-03-11 23:23:30 +03:00
ZyX
82e5af85c1
unittests: Run tests in a separate process
2017-03-11 23:23:30 +03:00
Justin M. Keyes
fd27d5a70f
test/scrollback: wiggle-room ( #6256 )
2017-03-11 14:46:35 +01:00
Justin M. Keyes
d1afd434f3
rplugin: Call s:LoadRemotePlugins() on startup.
...
Dispense with the FuncUndefined/CmdUndefined quasi-optimization.
If there are no rplugins, plugin/rplugin.vim takes less than 1ms.
Closes #5821
Closes #6250
Helped-by: Qiming zhao <chemzqm@gmail.com >
2017-03-11 12:26:22 +01:00