From fb773a3e0aa9466bb953c29bad0bf4ba34461a40 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 3 Jul 2021 21:37:59 +0200 Subject: patch 8.2.3093: tablabel_tooltip test fails with Athena MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: tablabel_tooltip test fails with Athena. (Dominique Pellé) Solution: Skip the test when using Athena. (closes #8508) --- src/testdir/check.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/testdir/check.vim') diff --git a/src/testdir/check.vim b/src/testdir/check.vim index 4c5f3eef5..d6bfe004a 100644 --- a/src/testdir/check.vim +++ b/src/testdir/check.vim @@ -14,6 +14,17 @@ func CheckFeature(name) endif endfunc +" Command to check for the absence of a feature. +command -nargs=1 CheckNotFeature call CheckNotFeature() +func CheckNotFeature(name) + if !has(a:name, 1) + throw 'Checking for non-existent feature ' .. a:name + endif + if has(a:name) + throw 'Skipped: ' .. a:name .. ' feature present' + endif +endfunc + " Command to check for the presence of a working option. command -nargs=1 CheckOption call CheckOption() func CheckOption(name) -- cgit v1.2.1