Mercurial > vim
annotate src/testdir/test_terminal_fail.vim @ 16855:19162ff4eacd v8.1.1429
patch 8.1.1429: "pos" option of popup window not supported yet
commit https://github.com/vim/vim/commit/ac1f1bc222b7de3cb2d3f1f2aa076f11c75e69de
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 30 21:24:26 2019 +0200
patch 8.1.1429: "pos" option of popup window not supported yet
Problem: "pos" option of popup window not supported yet.
Solution: Implement the option. Rename popup_getposition() to
popup_getpos().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 30 May 2019 21:30:04 +0200 |
parents | e9dbdc4d8279 |
children | f38fcbf343ce |
rev | line source |
---|---|
12407
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " This test is in a separate file, because it usually causes reports for memory |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " leaks under valgrind. That is because when fork/exec fails memory is not |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 " freed. Since the process exists right away it's not a real leak. |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 if !has('terminal') |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 finish |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 endif |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 source shared.vim |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 func Test_terminal_redir_fails() |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 if has('unix') |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 let buf = term_start('xyzabc', {'err_io': 'file', 'err_name': 'Xfile'}) |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 call term_wait(buf) |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 call WaitFor('len(readfile("Xfile")) > 0') |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 call assert_match('executing job failed', readfile('Xfile')[0]) |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 call WaitFor('!&modified') |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
18 call delete('Xfile') |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
19 bwipe |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 endif |
e9dbdc4d8279
patch 8.0.1083: leaking memory in input part of channel
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
21 endfunc |