annotate src/testdir/test_terminal_fail.vim @ 12588:5bc07e5d2c1f v8.0.1172

patch 8.0.1172: when E734 is given option is still set commit https://github.com/vim/vim/commit/2a6a6c3014e728cd01c750b0f60484d4eaf22a8c Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 2 19:29:48 2017 +0200 patch 8.0.1172: when E734 is given option is still set Problem: When E734 is given option is still set. Solution: Assign NULL to "s". (Christian Brabandt)
author Christian Brabandt <cb@256bit.org>
date Mon, 02 Oct 2017 19:30:04 +0200
parents e9dbdc4d8279
children f38fcbf343ce
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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