]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0165: tests: perleval fails in the sandbox v9.2.0165
authorChristian Brabandt <cb@256bit.org>
Sat, 14 Mar 2026 17:23:04 +0000 (17:23 +0000)
committerChristian Brabandt <cb@256bit.org>
Sat, 14 Mar 2026 17:23:04 +0000 (17:23 +0000)
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>
src/testdir/test_perl.vim
src/version.c

index cededb2e4bc06189992e0dc9b8d6855e0a6dcb37..52243b5a132757e0f8becd2f62a18f440a8c81d6 100644 (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"'))
index 67f31cfbad5d93314b129546be7d326fff085960..b3d68918b38251ec81e283cf75407a593c3c0a75 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    165,
 /**/
     164,
 /**/