diff options
Diffstat (limited to 'src/testdir/test_startup.vim')
| -rw-r--r-- | src/testdir/test_startup.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 6926ba313..c580dd0e4 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -726,6 +726,25 @@ func Test_startuptime() call delete('Xtestout') endfunc +func Test_log() + CheckFeature channel + + call assert_false(filereadable('Xlogfile')) + let after = ['qall'] + if RunVim([], after, '--log Xlogfile') + call assert_equal(1, readfile('Xlogfile') + \ ->filter({i, l -> l =~ '==== start log session'}) + \ ->len()) + " second time appends to the log + if RunVim([], after, '--log Xlogfile') + call assert_equal(2, readfile('Xlogfile') + \ ->filter({i, l -> l =~ '==== start log session'}) + \ ->len()) + endif + endif + call delete('Xlogfile') +endfunc + func Test_read_stdin() let after =<< trim [CODE] write Xtestout |
