Skip to content

Commit

Permalink
patch 9.0.2042: Test_cq_zero_exmode fails without channel feature
Browse files Browse the repository at this point in the history
Problem:  Test_cq_zero_exmode fails without channel feature
Solution: Make the test check the channel feature

closes: #13365

Signed-off-by: Christian Brabandt <[email protected]>
  • Loading branch information
chrisbra committed Oct 17, 2023
1 parent 8079917 commit c290009
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/doc/starting.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*starting.txt* For Vim version 9.0. Last change: 2023 May 30
*starting.txt* For Vim version 9.0. Last change: 2023 Oct 17


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -348,7 +348,7 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
Start logging and write entries to {filename}.
This works like calling `ch_logfile({filename}, 'ao')` very
early during startup.
{only available with the |+eval| feature}
{only available with the |+eval| and |+channel| feature}

*-D*
-D Debugging. Go to debugging mode when executing the first
Expand Down
2 changes: 2 additions & 0 deletions src/testdir/test_startup.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,8 @@ endfunc

" Test that -cq works as expected
func Test_cq_zero_exmode()
CheckFeature channel

let logfile = 'Xcq_log.txt'
let out = system(GetVimCommand() .. ' --clean --log ' .. logfile .. ' -es -X -c "argdelete foobar" -c"7cq"')
call assert_equal(8, v:shell_error)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2042,
/**/
2041,
/**/
Expand Down

0 comments on commit c290009

Please sign in to comment.