Commit: patch 9.2.0165: tests: perleval fails in the sandbox

1 view
Skip to first unread message

Christian Brabandt

unread,
Mar 14, 2026, 1:47:05 PM (9 days ago) Mar 14
to vim...@googlegroups.com
patch 9.2.0165: tests: perleval fails in the sandbox

Commit: https://github.com/vim/vim/commit/3f89324b3a7a7c88be19136227fbc9e1137cdb69
Author: Christian Brabandt <c...@256bit.org>
Date: Sat Mar 14 17:23:04 2026 +0000

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 <c...@256bit.org>

diff --git a/src/testdir/test_perl.vim b/src/testdir/test_perl.vim
index cededb2e4..52243b5a1 100644
--- a/src/testdir/test_perl.vim
+++ b/src/testdir/test_perl.vim
@@ -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
def", perleval('"abc
diff --git a/src/version.c b/src/version.c
index 67f31cfba..b3d68918b 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 */
+/**/
+ 165,
/**/
164,
/**/
Reply all
Reply to author
Forward
0 new messages