Mercurial > vim
annotate src/testdir/test_job_fails.vim @ 13238:e0dcfd3dbb52 v8.0.1493
patch 8.0.1493: completion items cannot be annotated
commit https://github.com/vim/vim/commit/9b56a57cdae31f7a2c85d440392bf63d3253a158
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 10 16:19:32 2018 +0100
patch 8.0.1493: completion items cannot be annotated
Problem: Completion items cannot be annotated.
Solution: Add a "user_data" entry to the completion item. (Ben Jackson,
coses #2608, closes #2508)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 10 Feb 2018 16:30:06 +0100 |
parents | c1347c968d31 |
children | 415185e2c970 |
rev | line source |
---|---|
9764
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " This test is in a separate file, because it usually causes reports for memory |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 " leaks under valgrind. That is because when fork/exec fails memory is not |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 " freed. Since the process exists right away it's not a real leak. |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 source shared.vim |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 func Test_job_start_fails() |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 if has('job') |
12765
c1347c968d31
patch 8.0.1260: using global variables for WaitFor()
Christian Brabandt <cb@256bit.org>
parents:
9764
diff
changeset
|
9 let job = job_start('axdfxsdf') |
9764
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 if has('unix') |
12765
c1347c968d31
patch 8.0.1260: using global variables for WaitFor()
Christian Brabandt <cb@256bit.org>
parents:
9764
diff
changeset
|
11 call WaitFor({-> job_status(job) == "dead"}) |
9764
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 else |
12765
c1347c968d31
patch 8.0.1260: using global variables for WaitFor()
Christian Brabandt <cb@256bit.org>
parents:
9764
diff
changeset
|
13 call WaitFor({-> job_status(job) == "fail"}) |
9764
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 endif |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 endif |
e0b783389bea
commit https://github.com/vim/vim/commit/46c4d4ac66aa2b129f4dcec9debfda606f72d4b3
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 endfunc |