view src/testdir/test_autochdir.vim @ 14824:845180495796 v8.1.0424

patch 8.1.0424: test output is very verbose, loading CI log is slow commit https://github.com/vim/vim/commit/e76d7a63dfe916c321e248fbfc97bd948d6fbabb Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 21 16:37:25 2018 +0200 patch 8.1.0424: test output is very verbose, loading CI log is slow Problem: Test output is very verbose, loading CI log is slow. Solution: Redirect output to /dev/null. (Ken Takata, closes https://github.com/vim/vim/issues/3456)
author Christian Brabandt <cb@256bit.org>
date Fri, 21 Sep 2018 16:45:05 +0200
parents 03a6aeea2096
children 90ab2d3ce11d
line wrap: on
line source

" Test 'autochdir' behavior

if !exists("+autochdir")
  finish
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