To: vim_dev@googlegroups.com Subject: Patch 8.2.2479 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2479 Problem: set/getbufline test fails without the job feature. Solution: Check whether the job feature is supported. (Dominique Pellé, closes #7790) Files: src/testdir/test_bufline.vim, src/testdir/test_vim9_builtin.vim *** ../vim-8.2.2478/src/testdir/test_bufline.vim 2021-01-31 13:08:16.164367438 +0100 --- src/testdir/test_bufline.vim 2021-02-07 14:30:28.127114100 +0100 *************** *** 40,50 **** call assert_equal([], getbufline(b, 6)) call assert_equal([], getbufline(b, 2, 1)) ! call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()]) ! call assert_equal(["function('eval')", ! \ "{'key': 123}", ! \ "no process"], ! \ getbufline(b, 2, 4)) exe "bwipe! " . b endfunc --- 40,52 ---- call assert_equal([], getbufline(b, 6)) call assert_equal([], getbufline(b, 2, 1)) ! if has('job') ! call setbufline(b, 2, [function('eval'), #{key: 123}, test_null_job()]) ! call assert_equal(["function('eval')", ! \ "{'key': 123}", ! \ "no process"], ! \ getbufline(b, 2, 4)) ! endif exe "bwipe! " . b endfunc *** ../vim-8.2.2478/src/testdir/test_vim9_builtin.vim 2021-02-03 17:41:19.924245848 +0100 --- src/testdir/test_vim9_builtin.vim 2021-02-07 14:30:28.127114100 +0100 *************** *** 824,834 **** assert_equal([], getbufline(b, 6)) assert_equal([], getbufline(b, 2, 1)) ! setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()]) ! assert_equal(["function('eval')", ! "{'key': 123}", ! "no process"], ! getbufline(b, 2, 4)) exe 'bwipe! ' .. b END --- 824,836 ---- assert_equal([], getbufline(b, 6)) assert_equal([], getbufline(b, 2, 1)) ! if has('job') ! setbufline(b, 2, [function('eval'), {key: 123}, test_null_job()]) ! assert_equal(["function('eval')", ! "{'key': 123}", ! "no process"], ! getbufline(b, 2, 4)) ! endif exe 'bwipe! ' .. b END *** ../vim-8.2.2478/src/version.c 2021-02-07 14:01:30.232933727 +0100 --- src/version.c 2021-02-07 14:30:21.035137169 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2479, /**/ -- GUARD #1: Where'd you get the coconut? ARTHUR: We found them. GUARD #1: Found them? In Mercea? The coconut's tropical! ARTHUR: What do you mean? GUARD #1: Well, this is a temperate zone. The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///