Skip to content

Commit

Permalink
tests: improve current-buffers reporting with not-wiped-buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Feb 19, 2018
1 parent dbd873a commit 8bb26a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/include/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ function! s:After()

let new_buffers = filter(range(1, bufnr('$')), 'bufexists(v:val) && index(g:neomake_test_buffers_before, v:val) == -1')
if !empty(new_buffers)
call add(errors, 'Unexpected/not wiped buffers: '.join(new_buffers, ', '))
Log neomake#utils#redir('ls!')
let curbuffers = neomake#utils#redir('ls!')
call add(errors, 'Unexpected/not wiped buffers: '.join(new_buffers, ', ')."\ncurrent buffers:".curbuffers)
for b in new_buffers
exe 'bwipe!' b
endfor
Expand Down

0 comments on commit 8bb26a7

Please sign in to comment.