Mercurial > vim
annotate src/testdir/test_quotestar.vim @ 11325:77f3b7316d8b v8.0.0548
patch 8.0.0548: saving the redo buffer only works one time
commit https://github.com/vim/vim/commit/d4863aa99e0527e9505c79cbeafc68a6832200bf
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 7 19:50:12 2017 +0200
patch 8.0.0548: saving the redo buffer only works one time
Problem: Saving the redo buffer only works one time, resulting in the "."
command not working well for a function call inside another
function call. (Ingo Karkat)
Solution: Save the redo buffer at every user function call. (closes #1619)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 07 Apr 2017 20:00:04 +0200 |
parents | ca5550f66b27 |
children | 370e833dcd4d |
rev | line source |
---|---|
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " *-register (quotestar) tests |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 if !has('clipboard') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 finish |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 source shared.vim |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 func Do_test_quotestar_for_macunix() |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 if empty(exepath('pbcopy')) || empty(exepath('pbpaste')) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 return 'Test requires pbcopy(1) and pbpaste(1)' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 let @* = '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 " Test #1: Pasteboard to Vim |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 let test_msg = "text from pasteboard to vim via quotestar" |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 " Write a piece of text to the pasteboard. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 call system('/bin/echo -n "' . test_msg . '" | pbcopy') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 " See if the *-register is changed as expected. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 call assert_equal(test_msg, @*) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
22 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 " Test #2: Vim to Pasteboard |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
24 let test_msg = "text from vim to pasteboard via quotestar" |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 " Write a piece of text to the *-register. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 let @* = test_msg |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
27 " See if the pasteboard is changed as expected. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
28 call assert_equal(test_msg, system('pbpaste')) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
29 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
30 return '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
31 endfunc |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
32 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
33 func Do_test_quotestar_for_x11() |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
34 if !has('clientserver') || !has('job') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
35 return 'Test requires the client-server and job features' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
36 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
37 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
38 let cmd = GetVimCommand() |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
39 if cmd == '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
40 return 'GetVimCommand() failed' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
41 endif |
11242
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
42 try |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
43 call remote_send('xxx', '') |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
44 catch |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
45 if v:exception =~ 'E240:' |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
46 " No connection to the X server, give up. |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
47 return |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
48 endif |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
49 " ignore other errors |
9612b93820a4
patch 8.0.0507: client-server tests fail when $DISPLAY is not set
Christian Brabandt <cb@256bit.org>
parents:
11227
diff
changeset
|
50 endtry |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
51 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
52 let name = 'XVIMCLIPBOARD' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
53 let cmd .= ' --servername ' . name |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
54 let g:job = job_start(cmd, {'stoponexit': 'kill', 'out_io': 'null'}) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
55 call WaitFor('job_status(g:job) == "run"') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
56 if job_status(g:job) != 'run' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
57 call assert_report('Cannot run the Vim server') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
58 return '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
59 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
60 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
61 " Takes a short while for the server to be active. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
62 call WaitFor('serverlist() =~ "' . name . '"') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
63 call assert_match(name, serverlist()) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
64 |
11227
9bfae04699c3
patch 8.0.0500: quotestar test is still a bit flaky
Christian Brabandt <cb@256bit.org>
parents:
11217
diff
changeset
|
65 " Wait for the server to be up and answering requests. One second is not |
9bfae04699c3
patch 8.0.0500: quotestar test is still a bit flaky
Christian Brabandt <cb@256bit.org>
parents:
11217
diff
changeset
|
66 " always sufficient. |
9bfae04699c3
patch 8.0.0500: quotestar test is still a bit flaky
Christian Brabandt <cb@256bit.org>
parents:
11217
diff
changeset
|
67 call WaitFor('remote_expr("' . name . '", "v:version", "", 2) != ""') |
9bfae04699c3
patch 8.0.0500: quotestar test is still a bit flaky
Christian Brabandt <cb@256bit.org>
parents:
11217
diff
changeset
|
68 |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
69 " Clear the *-register of this vim instance. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
70 let @* = '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
71 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
72 " Try to change the *-register of the server. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
73 call remote_foreground(name) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
74 call remote_send(name, ":let @* = 'yes'\<CR>") |
11217
466657ab7340
patch 8.0.0495: quotestar test uses timer instead of timeout
Christian Brabandt <cb@256bit.org>
parents:
11209
diff
changeset
|
75 call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "yes"') |
466657ab7340
patch 8.0.0495: quotestar test uses timer instead of timeout
Christian Brabandt <cb@256bit.org>
parents:
11209
diff
changeset
|
76 call assert_equal('yes', remote_expr(name, "@*", "", 2)) |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
77 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
78 " Check that the *-register of this vim instance is changed as expected. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
79 call assert_equal('yes', @*) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
80 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
81 if has('unix') && has('gui') && !has('gui_running') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
82 let @* = '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
83 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
84 " Running in a terminal and the GUI is avaiable: Tell the server to open |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
85 " the GUI and check that the remote command still works. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
86 " Need to wait for the GUI to start up, otherwise the send hangs in trying |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
87 " to send to the terminal window. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
88 if has('gui_athena') || has('gui_motif') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
89 " For those GUIs, ignore the 'failed to create input context' error. |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
90 call remote_send(name, ":call test_ignore_error('E285') | gui -f\<CR>") |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
91 else |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
92 call remote_send(name, ":gui -f\<CR>") |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
93 endif |
11227
9bfae04699c3
patch 8.0.0500: quotestar test is still a bit flaky
Christian Brabandt <cb@256bit.org>
parents:
11217
diff
changeset
|
94 " Wait for the server in the GUI to be up and answering requests. |
9bfae04699c3
patch 8.0.0500: quotestar test is still a bit flaky
Christian Brabandt <cb@256bit.org>
parents:
11217
diff
changeset
|
95 call WaitFor('remote_expr("' . name . '", "has(\"gui_running\")", "", 1) =~ "1"') |
11217
466657ab7340
patch 8.0.0495: quotestar test uses timer instead of timeout
Christian Brabandt <cb@256bit.org>
parents:
11209
diff
changeset
|
96 |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
97 call remote_send(name, ":let @* = 'maybe'\<CR>") |
11217
466657ab7340
patch 8.0.0495: quotestar test uses timer instead of timeout
Christian Brabandt <cb@256bit.org>
parents:
11209
diff
changeset
|
98 call WaitFor('remote_expr("' . name . '", "@*", "", 1) == "maybe"') |
466657ab7340
patch 8.0.0495: quotestar test uses timer instead of timeout
Christian Brabandt <cb@256bit.org>
parents:
11209
diff
changeset
|
99 call assert_equal('maybe', remote_expr(name, "@*", "", 2)) |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
100 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
101 call assert_equal('maybe', @*) |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
102 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
103 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
104 call remote_send(name, ":qa!\<CR>") |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
105 call WaitFor('job_status(g:job) == "dead"') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
106 if job_status(g:job) != 'dead' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
107 call assert_report('Server did not exit') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
108 call job_stop(g:job, 'kill') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
109 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
110 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
111 return '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
112 endfunc |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
113 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
114 func Test_quotestar() |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
115 let skipped = '' |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
116 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
117 let quotestar_saved = @* |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
118 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
119 if has('macunix') |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
120 let skipped = Do_test_quotestar_for_macunix() |
11250
ca5550f66b27
patch 8.0.0511: message for skipping client-server tests is unclear
Christian Brabandt <cb@256bit.org>
parents:
11242
diff
changeset
|
121 elseif has('x11') |
ca5550f66b27
patch 8.0.0511: message for skipping client-server tests is unclear
Christian Brabandt <cb@256bit.org>
parents:
11242
diff
changeset
|
122 if empty($DISPLAY) |
ca5550f66b27
patch 8.0.0511: message for skipping client-server tests is unclear
Christian Brabandt <cb@256bit.org>
parents:
11242
diff
changeset
|
123 let skipped = "Test can only run when $DISPLAY is set." |
ca5550f66b27
patch 8.0.0511: message for skipping client-server tests is unclear
Christian Brabandt <cb@256bit.org>
parents:
11242
diff
changeset
|
124 else |
ca5550f66b27
patch 8.0.0511: message for skipping client-server tests is unclear
Christian Brabandt <cb@256bit.org>
parents:
11242
diff
changeset
|
125 let skipped = Do_test_quotestar_for_x11() |
ca5550f66b27
patch 8.0.0511: message for skipping client-server tests is unclear
Christian Brabandt <cb@256bit.org>
parents:
11242
diff
changeset
|
126 endif |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
127 else |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
128 let skipped = "Test is not implemented yet for this platform." |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
129 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
130 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
131 let @* = quotestar_saved |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
132 |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
133 if !empty(skipped) |
11209
1083038c59ba
patch 8.0.0491: quotestar test fails when features are missing
Christian Brabandt <cb@256bit.org>
parents:
11205
diff
changeset
|
134 throw 'Skipped: ' . skipped |
11205
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
135 endif |
4db196820d3b
patch 8.0.0489: clipboard and "* register is not tested
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
136 endfunc |