To: vim_dev@googlegroups.com Subject: Patch 7.4.2041 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 7.4.2041 Problem: Netbeans file authentication not tested. Solution: Add a test. Files: src/testdir/test_netbeans.vim *** ../vim-7.4.2040/src/testdir/test_netbeans.vim 2016-07-15 17:08:45.658711110 +0200 --- src/testdir/test_netbeans.vim 2016-07-15 17:41:47.762415922 +0200 *************** *** 49,51 **** --- 49,76 ---- call ch_log('Test_nb_basic') call s:run_server('Nb_basic') endfunc + + func Nb_file_auth(port) + call assert_fails('nbstart =notexist', 'E660:') + call writefile(['host=localhost', 'port=' . a:port, 'auth=bunny'], 'Xnbauth') + call setfperm('Xnbauth', "rw-r--r--") + call assert_fails('nbstart =Xnbauth', 'E668:') + call setfperm('Xnbauth', "rw-------") + exe 'nbstart :localhost:' . a:port . ':bunny' + call assert_true(has("netbeans_enabled")) + + call WaitFor('len(readfile("Xnetbeans")) > 2') + nbclose + let lines = readfile("Xnetbeans") + call assert_equal('AUTH bunny', lines[0]) + call assert_equal('0:version=0 "2.5"', lines[1]) + call assert_equal('0:startupDone=0', lines[2]) + + call delete("Xnbauth") + call delete("Xnetbeans") + endfunc + + func Test_nb_file_auth() + call ch_log('Test_nb_file_auth') + call s:run_server('Nb_file_auth') + endfunc *** ../vim-7.4.2040/src/version.c 2016-07-15 17:11:32.968323804 +0200 --- src/version.c 2016-07-15 17:34:31.248647492 +0200 *************** *** 760,761 **** --- 760,763 ---- { /* Add new patch number below this line */ + /**/ + 2041, /**/ -- E M A C S s e l o h c t t n i a a t f p r t e o l /// 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 ///