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 -- [email protected] -- 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 ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.