diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-02-03 20:22:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-02-03 20:22:32 +0100 |
commit | f92591f7f9fc78d2aced99befe444cb423b26df8 (patch) | |
tree | a5748409dce4905c15d8aa66c8a9004df48f9607 | |
parent | a0f9cd148eaab23b2037d2f543f3b8f5a3a7ad3c (diff) |
patch 7.4.1248v7.4.1248
Problem: Can't reliably stop the channel test server. Can't start the
server if the python file is not executable.
Solution: Use "pkill" instead of "killall". Run the python file as an
argument instead of as an executable.
-rw-r--r--[-rwxr-xr-x] | src/testdir/test_channel.py | 0 | ||||
-rw-r--r-- | src/testdir/test_channel.vim | 7 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/testdir/test_channel.py b/src/testdir/test_channel.py index 2364494831..2364494831 100755..100644 --- a/src/testdir/test_channel.py +++ b/src/testdir/test_channel.py diff --git a/src/testdir/test_channel.vim b/src/testdir/test_channel.vim index ee7a422447..9d4c778372 100644 --- a/src/testdir/test_channel.vim +++ b/src/testdir/test_channel.vim @@ -4,7 +4,8 @@ scriptencoding utf-8 " This requires the Python command to run the test server. " This most likely only works on Unix and Windows console. if has('unix') - if !executable('python') + " We also need the pkill command to make sure the server can be stopped. + if !executable('python') || !executable('pkill') finish endif elseif has('win32') && !has('gui_win32') @@ -20,7 +21,7 @@ func s:start_server() if has('win32') silent !start cmd /c start "test_channel" py test_channel.py else - silent !./test_channel.py& + silent !python test_channel.py& endif endfunc @@ -28,7 +29,7 @@ func s:kill_server() if has('win32') call system('taskkill /IM py.exe /T /F /FI "WINDOWTITLE eq test_channel"') else - call system("killall test_channel.py") + call system("pkill --full test_channel.py") endif endfunc diff --git a/src/version.c b/src/version.c index 9417f5e445..80abec4a79 100644 --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1248, +/**/ 1247, /**/ 1246, |