]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0175: No tests for what v9.2.0141 and v9.2.0156 fixes v9.2.0175
authorChristian Brabandt <cb@256bit.org>
Mon, 16 Mar 2026 19:36:46 +0000 (19:36 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 16 Mar 2026 19:36:46 +0000 (19:36 +0000)
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 <cb@256bit.org>
src/testdir/test_perl.vim
src/testdir/test_ruby.vim
src/version.c

index 52243b5a132757e0f8becd2f62a18f440a8c81d6..7f44b7f7c4a9885063f31e020ab2ec141c68d1cf 100644 (file)
@@ -371,6 +371,11 @@ func Test_perl_in_sandbox()
   sandbox perl print 'test'
   let messages = split(execute('message'), "\n")
   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
index e5af66500aacd0046bbe2f968c3e12734715fd4c..fcdfe892954028442103456d244fbf1f39deaee5 100644 (file)
@@ -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
index d40a5f1476bcc7c13e27a682ad3524c1ad28ac5f..f4fdeaf98879e9804dd5e84a226c88733469b7a7 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    175,
 /**/
     174,
 /**/