Commit Graph

2742 Commits

Author SHA1 Message Date
Thiago de Arruda
41225fe4f6 test: Fix hanging test suite after failures
When a test that fails leaves nvim in a 'Press Enter...' state, the whole suite
will hang because the `qa!` command executed before the next test won't be
processed until '<enter>' is sent.

Now the lua client can send a signal with when `Session:exit()` is called, so
the `qa!` request is no longer necessary.

Also:

- Set noswapfile at startup to prevent tests from leaving .s* swap files(should
  also improve test environment determinism)
- Use `assert(false, msg) instead of `error(msg)` to report screen assertion
  failures.
2015-01-23 18:58:19 -03:00
Thiago de Arruda
c472e3af64 deps: Update lua client
The latest version works around a libuv bug that can leave zombie nvim processes
despite the event loop being properly cleaned up. This can lead to functional
tests being aborted depending on the maximum number of child processes
configured for a platform.
2015-01-23 18:52:55 -03:00
Thiago de Arruda
641df7be9c Merge PR #1835 'snapshot_util (Screen Tests for the Lazy) and enable stricter highlight tests' 2015-01-23 07:48:55 -03:00
Björn Linse
a9048896b3 tests/ui: strict mode 2015-01-23 07:47:48 -03:00
Björn Linse
5c837f613e tests/ui: snapshot util 2015-01-23 07:47:48 -03:00
Justin M. Keyes
0f39097e53 Merge pull request #1850 from JackDanger/halfway-a-line
doc: "halfway a line" is a very confusing phrase
2015-01-22 22:20:29 -08:00
Jack Danger Canty
19c22cdb80 "halfway a line" is a very confusing phrase
If you Google for this phrase found in the Vim documentation you'll find
almost exclusively hits from the Vim documentation. I think changing
"halfway a line" to "halfway through a line" makes more sense.

There seems to be an pervasive odd use of the word 'halfway' in the
original docs which I'm updating everywhere.
2015-01-22 21:57:03 -08:00
Justin M. Keyes
918b5d021d Merge pull request #1864 from Hinidu/vim-7.4.500
vim-patch:7.4.500 and fix in vim-patch:7.4.406
2015-01-22 17:28:02 -08:00
Justin M. Keyes
20fef8a7eb Merge pull request #1847 from JackDanger/safely-freeing-channels
Fix CID #102150
2015-01-22 16:55:10 -08:00
Justin M. Keyes
61c963bba4 Merge pull request #1861 from fwalch/na-patches
vim-patch: Mark patches as NA.
2015-01-22 16:48:25 -08:00
Thiago de Arruda
8d51d7e7a7 Merge PR #1863 'Fix tests for plain lua' 2015-01-22 09:17:49 -03:00
Thiago de Arruda
3f0983e400 test: Set some options to reduce nondeterminism in functional tests
- shortmess+=I: Remove intro screen
- background=light: Disregard COLORFGBG environment variable
2015-01-22 08:54:42 -03:00
Thiago de Arruda
5b65ac2ca7 test: Make it possible to run functional tests with plain lua
Replace the hexadecimal escape sequences, which are only supported by luajit
2015-01-22 08:54:42 -03:00
Thiago de Arruda
f08fe552f4 test: Fix screen.lua eol_clear method. 2015-01-22 08:54:37 -03:00
Jack Danger Canty
1a090983f5 Fix CID #102150
Don't attempt to write an error message to a channel that may have been
closed and freed.

[CID #102150](https://scan8.coverity.com/reports.htm#v22612/p10672/fileInstanceId=3625286&defectInstanceId=1525721&mergedDefectId=102150)
2015-01-22 00:17:42 -08:00
Pavel Platto
02113c328e Replace erroneous ft=unix by ff=unix from 7.4.406 2015-01-21 23:57:14 +02:00
Pavel Platto
83d8e87a92 vim-patch:7.4.500
Problem:    Test 72 still fails once in a while.
Solution:   Don't set 'fileformat' to unix, reset it. (Ken Takata)

https://code.google.com/p/vim/source/detail?r=v7-4-500
2015-01-21 23:54:51 +02:00
Florian Walch
39516a0d15 vim-patch: Mark patches as NA. 2015-01-21 20:21:46 +01:00
Justin M. Keyes
d550eecf70 Merge pull request #1853 from fwalch/vim-bd18da9
vim-patch:bd18da9 (runtime update)
2015-01-21 10:27:07 -05:00
Florian Walch
5f00d22853 vim-patch:bd18da9
Update runtime files.

https://code.google.com/p/vim/source/detail?r=bd18da914be9d43a70713f6af02770a0d3280159
2015-01-21 07:27:01 +01:00
Justin M. Keyes
c3028e4353 Merge pull request #1656 from fmoralesc/remove-easy-mode
Remove "easy" mode.
2015-01-21 00:17:17 -05:00
Justin M. Keyes
57207ea60e Merge pull request #1856 from Hinidu/vim-7.4.462
vim-patch:7.4.462
2015-01-20 17:48:34 -05:00
Justin M. Keyes
1c08acd0e7 Merge pull request #1855 from Hinidu/vim-7.4.446
vim-patch:7.4.446
2015-01-20 17:44:53 -05:00
Pavel Platto
2275b9753e vim-patch:7.4.462
Problem:    Setting the local value of 'backupcopy' empty gives an error.
	    (Peter Mattern)
Solution:   When using an empty value set the flags to zero. (Hirohito
	    Higashi)

https://code.google.com/p/vim/source/detail?r=v7-4-462
2015-01-20 21:57:57 +02:00
Pavel Platto
85f342a110 vim-patch:7.4.446
Problem:    In some situations, when setting up an environment to trigger an
	    autocommand, the environment is not properly restored.
Solution:   Check the return value of switch_win() and call restore_win()
	    always.  (Daniel Hahler)

https://code.google.com/p/vim/source/detail?r=v7-4-446
2015-01-20 21:09:45 +02:00
Justin M. Keyes
da43f70ba7 Merge pull request #1852 from fwalch/vim-47b1887
vim-patch:47b1887 (runtime update)
2015-01-20 11:35:21 -05:00
Florian Walch
e6f3b0703c vim-patch:47b1887
Updated runtime files.

https://code.google.com/p/vim/source/detail?r=47b1887483da0bc33d26a3e8d89973d76c9f39ef
2015-01-20 15:11:00 +01:00
Justin M. Keyes
487d2ce74a Merge pull request #1843 from JackDanger/initialize-our_paren_pos-CID-102151
coverity/102151: initialize `our_paren_pos`
2015-01-19 17:56:21 -05:00
Justin M. Keyes
8d93bc1a4e Merge pull request #1848 from Hinidu/vim-7.4.492
vim-patch:7.4.492
2015-01-19 17:30:39 -05:00
Pavel Platto
1d5222985c vim-patch:7.4.492
Problem:    In Insert mode, after inserting a newline that inserts a comment
	    leader, CTRL-O moves to the right. (ZyX) Issue 57.
Solution:   Correct the condition for moving the cursor back to the NUL.
	    (Christian Brabandt)

  https://code.google.com/p/vim/source/detail?r=v7-4-492
2015-01-19 23:39:01 +02:00
Justin M. Keyes
617c00bd49 Merge pull request #1812 from elmart/remove-long_u-5
Remove project-specific integer types: long_u. (5)
2015-01-19 14:45:50 -05:00
Eliseo Martínez
dad1e39edf Remove long_u: Remove type. 2015-01-19 19:47:29 +01:00
Eliseo Martínez
2ceb1c74d5 Remove long_u: regexp: Refactor long_u. 2015-01-19 19:47:28 +01:00
Eliseo Martínez
79b5a629eb Remove long_u: ops.c: Refactor long_u. 2015-01-19 19:47:28 +01:00
Eliseo Martínez
b716b047e0 Remove long_u: ex_docmd.c: Refactor long_u. 2015-01-19 19:47:27 +01:00
Eliseo Martínez
c03913c991 Remove long_u: buffer_defs.h: Refactor long_u. 2015-01-19 19:47:27 +01:00
Eliseo Martínez
e1f7821874 Remove long_u: option.c: Refactor long_u. 2015-01-19 19:47:27 +01:00
Eliseo Martínez
426544ca88 Remove long_u: option.c: Enable -Wconversion. 2015-01-19 19:47:26 +01:00
Eliseo Martínez
31dacda874 Remove long_u: (various): Refactor long_u. 2015-01-19 19:41:27 +01:00
Eliseo Martínez
6762f172d7 Remove long_u: ex_cmds_defs.h: Refactor long_u.
CommandDefinition.cmd_argt: long_u --> uint32_t.
2015-01-19 19:41:27 +01:00
Justin M. Keyes
d0debe2432 Merge pull request #1729 from fwalch/vim-7.4.490
vim-patch:7.4.490
2015-01-19 08:52:29 -05:00
Justin M. Keyes
8393b6d10c Merge pull request #1781 from fwalch/missing-vim-patches
vim-patch.sh: Add option to list missing Vim changesets.
2015-01-19 08:43:38 -05:00
Jack Danger Canty
f44a1e1632 coverity/102151: initialize our_paren_pos
This hoists the initialization of `our_paren_pos` outside a conditional
so it can be safely referenced further down in this function.

Originally broken in:
https://code.google.com/p/vim/source/diff?spec=svndc8197342755fda6ca4d6619dac228406867a7ce&old=01583c79d5f4d3f29d4c33dd10dd29efd349cad0&r=dc8197342755fda6ca4d6619dac228406867a7ce&format=unidiff&path=%2Fsrc%2Fmisc1.c

This fixes CID #102151
https://scan8.coverity.com/reports.htm#v22612/p10672/fileInstanceId=3625174&defectInstanceId=1525719&mergedDefectId=102151
2015-01-18 19:31:22 -08:00
Justin M. Keyes
c7f4e55362 Merge pull request #1798 from oni-link/fix.job.wait
job.c: Prevent early return from job_wait().
2015-01-18 13:23:17 -05:00
oni-link
d7d1b11332 Tests for system()/systemlist() when interrupted with CTRL-C. 2015-01-17 16:34:58 +01:00
Justin M. Keyes
bff48b23d7 Merge pull request #1833 from aktau/formatc-fix-gcc-on-osx
test: Correct lfs.attributes() call, and allow unit tests to run with gcc on OSX
2015-01-16 16:35:33 -05:00
Nicolas Hillegeer
522a15f1c0 test: fix formatc.lua oddity on OSX/gcc
The primitive C canonicalizer we use to strip out duplicate header
declarations and keep luajit's ffi happy, didn't work properly in this case.

What happened is this (in /usr/include/ctype.h):

__DARWIN_CTYPE_TOP_inline int
isspecial(int _c)
{
        return (__istype(_c, _CTYPE_T));
}

Gets preprocessed to something like:

__inline int
isspecial(int _c)
{
        return (__istype(_c, _CTYPE_T));
}

On OSX/gcc. The formatter wasn't recognizing this entire function as
something to put on a single line because it naively just checks for
"static" or "inline" for that, but not "__inline".

This error doesn't occur on OSX/clang. Without looking further into it, I
guess that __DARWIN_CTYPE_TOP_inline gets defined to inline on clang, but
__inline on gcc, for some reason.

This helps issue #1572 along.
2015-01-16 21:45:00 +01:00
Nicolas Hillegeer
dd25b2e5ae test/os/fs: fix call to lfs.attributes
The second argument to lfs.attributes() serves only to select a specific
part of the normally returned table. It's not a file open flag (e.g.: as for
fopen() in C). Also made the (n)eq checks a bit more idiomatic.

Fixes #1831
2015-01-16 21:44:25 +01:00
Justin M. Keyes
401d738597 Merge pull request #1803 from elmart/small-fixes
Small fixes.
2015-01-16 09:27:09 -05:00
Eliseo Martínez
634d5d86a7 coverity/100248: Operands don't affect result: HI.
Problem    : Operands don't affect results (CONSTANT_EXPRESSION_RESULT).
Diagnostic : Harmless issue.
Rationale  : n >= LONG_MIN, n being intmax_t, is always true for
             architectures where sizeof(intmax_t) == sizeof(long).
Resolution : Add sizes check.
2015-01-16 09:26:01 +01:00