patch 9.2.0165: tests: perleval fails in the sandbox

Problem:  tests: perleval fails in the sandbox
          (after v9.2.0156)
Solution: Update tests and assert that it fails

related: #19676

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2026-03-14 17:23:04 +00:00
parent ef3cee793f
commit 3f89324b3a
2 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -163,7 +163,11 @@ func Test_perleval()
call assert_equal(-2, perleval('-2'))
call assert_equal(2.5, perleval('2.5'))
sandbox call assert_equal(2, perleval('2'))
try
sandbox call perleval('2')
call assert_report('perleval did not fail in the sandbox')
catch /^Vim\%((\S\+)\)\=:E48:/
endtry
call assert_equal('abc', perleval('"abc"'))
call assert_equal("abc\ndef", perleval('"abc\0def"'))
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
165,
/**/
164,
/**/