patch 9.2.0175: No tests for what v9.2.0141 and v9.2.0156 fixes
Commit:
https://github.com/vim/vim/commit/e22b31887a9f0492fe0bb9f6d4a72951e6684de3
Author: Christian Brabandt <[email protected]>
Date: Mon Mar 16 19:36:46 2026 +0000
patch 9.2.0175: No tests for what v9.2.0141 and v9.2.0156 fixes
Problem: No tests for what v9.2.0141 and v9.2.0156 fixes
Solution: Add tests for using :perldo and rubeval() in sandbox mode
related: #19664
related: #19653
closes: #19699
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/src/testdir/test_perl.vim b/src/testdir/test_perl.vim
index 52243b5a1..7f44b7f7c 100644
--- a/src/testdir/test_perl.vim
+++ b/src/testdir/test_perl.vim
@@ -371,6 +371,11 @@ func Test_perl_in_sandbox()
sandbox perl print 'test'
let messages = split(execute('message'), "
")
call assert_match("'print' trapped by operation mask", messages[-1])
+ try
+ sandbox perldo print "hello sandbox"
+ call assert_report('perldo in the sandbox')
+ catch /^Vim\%((\S\+)\)\=:E48:/
+ endtry
endfunc
" vim: shiftwidth=2 sts=2 expandtab
diff --git a/src/testdir/test_ruby.vim b/src/testdir/test_ruby.vim
index e5af66500..fcdfe8929 100644
--- a/src/testdir/test_ruby.vim
+++ b/src/testdir/test_ruby.vim
@@ -428,6 +428,10 @@ func Test_rubyeval_error()
call assert_fails('call rubyeval("(")')
endfunc
+func Test_rubyeval_sandbox()
+ call assert_fails('sandbox call rubyeval("1+1")', 'E48:')
+endfunc
+
" Test for various heredoc syntax
func Test_ruby_heredoc()
ruby << END
diff --git a/src/version.c b/src/version.c
index d40a5f147..f4fdeaf98 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 175,
/**/
174,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1w2DsC-008myZ-KY%40256bit.org.