]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0541: failing test with Vim configured without channel v9.1.0541
authorDominique Pellé <dominique.pelle@gmail.com>
Sun, 7 Jul 2024 18:37:12 +0000 (20:37 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 7 Jul 2024 18:37:12 +0000 (20:37 +0200)
commit52123879c0c64c64ca6071192a9f8eacd822efd1
tree6384761d4cbc7e55dbdb1d2b7d3c86c4589cc947
parentfc3f5dba52099d82ccc8bfe309d58a6fac01373d
patch 9.1.0541: failing test with Vim configured without channel

Problem:  failing test with Vim configured without channel
Solution: In the test Test_null_values() verify that the 'channel' and
          'job' feature is present in Vim. (Dominique Pellé)

Test `Test_null_values` was failing when vim is configured without
channel because the test uses function `null_channel()` (which
requires the `+channel` feature) and using `null_job()` which
requires the `+job` feature. But was reproducible when vim is
configured with:
```
./configure --with-features=huge --enable-gui=none --disable-channel
```

Only check `null_channel()` when the `+channel` feature is available.
Only check `null_job()` when the `+job` feature is available.

closes: #15177

Signed-off-by: Dominique Pellé <dominique.pelle@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_vim9_script.vim
src/version.c