mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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:
@@ -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"'))
|
||||
|
||||
@@ -734,6 +734,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
165,
|
||||
/**/
|
||||
164,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user