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>
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
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
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 175,
/**/
174,
/**/