summaryrefslogtreecommitdiff
path: root/src/testdir/test_execute_func.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-01-30 18:24:53 +0100
committerBram Moolenaar <Bram@vim.org>2020-01-30 18:24:53 +0100
commit5feabe00c47fa66d5f4c95213f150488433f78e3 (patch)
tree9e9e980d294d8a3cc5c004f2733538cabef16d86 /src/testdir/test_execute_func.vim
parent9f2d020d396132ecbc0be6faa1de29c7078bb5ac (diff)
downloadvim-git-5feabe00c47fa66d5f4c95213f150488433f78e3.tar.gz
patch 8.2.0183: tests fail when the float feature is disabledv8.2.0183
Problem: Tests fail when the float feature is disabled. Solution: Skip tests that don't work without float support.
Diffstat (limited to 'src/testdir/test_execute_func.vim')
-rw-r--r--src/testdir/test_execute_func.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/testdir/test_execute_func.vim b/src/testdir/test_execute_func.vim
index 30dcb6202..235107c23 100644
--- a/src/testdir/test_execute_func.vim
+++ b/src/testdir/test_execute_func.vim
@@ -30,14 +30,16 @@ func Test_execute_string()
call assert_equal("\nthat", evaled)
call assert_fails('call execute("doesnotexist")', 'E492:')
- call assert_fails('call execute(3.4)', 'E806:')
call assert_fails('call execute("call NestedRedir()")', 'E930:')
call assert_equal("\nsomething", execute('echo "something"', ''))
call assert_equal("\nsomething", execute('echo "something"', 'silent'))
call assert_equal("\nsomething", execute('echo "something"', 'silent!'))
call assert_equal("", execute('burp', 'silent!'))
- call assert_fails('call execute("echo \"x\"", 3.4)', 'E806:')
+ if has('float')
+ call assert_fails('call execute(3.4)', 'E806:')
+ call assert_fails('call execute("echo \"x\"", 3.4)', 'E806:')
+ endif
endfunc
func Test_execute_list()