comparison src/testdir/test_paste.vim @ 17049:f38fcbf343ce v8.1.1524

patch 8.1.1524: tests are silently skipped commit https://github.com/vim/vim/commit/b0f94c1ff34d27d33aa9f96204985ea29c2eb0a1 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 13 22:19:53 2019 +0200 patch 8.1.1524: tests are silently skipped Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Jun 2019 22:30:07 +0200
parents 0422b14bce58
children 8e9e9124c7a2
comparison
equal deleted inserted replaced
17048:dcbd3676e9d6 17049:f38fcbf343ce
1 " Tests for bracketed paste and other forms of pasting. 1 " Tests for bracketed paste and other forms of pasting.
2 2
3 " Bracketed paste only works with "xterm". Not in GUI or Windows console. 3 " Bracketed paste only works with "xterm". Not in GUI or Windows console.
4 if has('gui_running') || has('win32') 4 if has('win32')
5 finish 5 throw 'Skipped, does not work on MS-Windows'
6 endif
7 if has('gui_running')
8 throw 'Skipped, does not work in the GUI'
6 endif 9 endif
7 set term=xterm 10 set term=xterm
8 11
9 source shared.vim 12 source shared.vim
10 13
120 123
121 func Test_xrestore() 124 func Test_xrestore()
122 if !has('xterm_clipboard') 125 if !has('xterm_clipboard')
123 return 126 return
124 endif 127 endif
125 call ch_logfile('logfile', 'w')
126 let display = $DISPLAY 128 let display = $DISPLAY
127 new 129 new
128 call CheckCopyPaste() 130 call CheckCopyPaste()
129 131
130 xrestore 132 xrestore
131 call CheckCopyPaste() 133 call CheckCopyPaste()
132 134
133 exe "xrestore " .. display 135 exe "xrestore " .. display
134 call CheckCopyPaste() 136 call CheckCopyPaste()
135 137
136 call ch_logfile('', '')
137 bwipe! 138 bwipe!
138 endfunc 139 endfunc