mirror of
https://github.com/neovim/neovim.git
synced 2026-03-12 20:15:47 +00:00
Problem: No statistics displayed after running tests.
Solution: Summarize the test results. (Christian Brabandt, closes vim/vim#4391)
Also make it possible to report a skipped file.
9c0cec65f8
Removes our custom no-inits from `$(RUN_VIMTEST)`, since we have
`$(NO_INITS)` now also.
20 lines
407 B
VimL
20 lines
407 B
VimL
" Test 'autochdir' behavior
|
|
|
|
if !exists("+autochdir")
|
|
throw 'Skipped: autochdir feature missing'
|
|
endif
|
|
|
|
func Test_set_filename()
|
|
let cwd = getcwd()
|
|
call test_autochdir()
|
|
set acd
|
|
new
|
|
w samples/Xtest
|
|
call assert_equal("Xtest", expand('%'))
|
|
call assert_equal("samples", substitute(getcwd(), '.*/\(\k*\)', '\1', ''))
|
|
bwipe!
|
|
set noacd
|
|
exe 'cd ' . cwd
|
|
call delete('samples/Xtest')
|
|
endfunc
|