diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-07 23:07:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-07 23:07:07 +0200 |
commit | 8c5a278fc508da6dfe50e69b6ee734451aa4eafb (patch) | |
tree | 8a07c54e9ea8667a88f4aa2566e3c3c314727751 /src/testdir/test_filechanged.vim | |
parent | b59e7357722d977830948572a395f0a175c7ded8 (diff) | |
download | vim-git-8c5a278fc508da6dfe50e69b6ee734451aa4eafb.tar.gz |
patch 8.1.1826: tests use hand coded feature and option checksv8.1.1826
Problem: Tests use hand coded feature and option checks.
Solution: Use the commands from check.vim in more tests.
Diffstat (limited to 'src/testdir/test_filechanged.vim')
-rw-r--r-- | src/testdir/test_filechanged.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testdir/test_filechanged.vim b/src/testdir/test_filechanged.vim index a937bb8d1..bfcdb76ab 100644 --- a/src/testdir/test_filechanged.vim +++ b/src/testdir/test_filechanged.vim @@ -1,9 +1,10 @@ " Tests for when a file was changed outside of Vim. +source check.vim + func Test_FileChangedShell_reload() - if !has('unix') - return - endif + CheckUnix + augroup testreload au FileChangedShell Xchanged_r let g:reason = v:fcs_reason | let v:fcs_choice = 'reload' augroup END @@ -91,9 +92,8 @@ func Test_FileChangedShell_reload() endfunc func Test_file_changed_dialog() - if !has('unix') || has('gui_running') - return - endif + CheckUnix + CheckNotGui au! FileChangedShell new Xchanged_d |