view src/testdir/test_recover.vim @ 11688:570f00932da8 v8.0.0727

patch 8.0.0727: message about what register to yank into is not translated commit https://github.com/vim/vim/commit/60d0e97497f1104b31f711072ef174af533b61fa Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 16 20:54:34 2017 +0200 patch 8.0.0727: message about what register to yank into is not translated Problem: Message about what register to yank into is not translated. (LemonBoy) Solution: Add _().
author Christian Brabandt <cb@256bit.org>
date Sun, 16 Jul 2017 21:00:03 +0200
parents 0cafb01af1b6
children 4767939d10cc
line wrap: on
line source

" Test :recover

func Test_recover_root_dir()
  " This used to access invalid memory.
  split Xtest
  set dir=/
  call assert_fails('recover', 'E305:')
  close!

  if has('win32') || filewritable('/') == 2
    " can write in / directory on MS-Windows
    set dir=/notexist/
  endif
  call assert_fails('split Xtest', 'E303:')
  set dir&
endfunc

" TODO: move recover tests from test78.in to here.