Mercurial > vim
comparison src/testdir/test_job_fails.vim @ 19724:b3e93a05c3ca v8.2.0418
patch 8.2.0418: code in eval.c not sufficiently covered by tests
Commit: https://github.com/vim/vim/commit/8b633135106dda8605463b780573c45b00c22afe
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 20 18:20:51 2020 +0100
patch 8.2.0418: code in eval.c not sufficiently covered by tests
Problem: Code in eval.c not sufficiently covered by tests.
Solution: Add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/5815)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 Mar 2020 18:30:05 +0100 |
parents | 415185e2c970 |
children | 08940efa6b4e |
comparison
equal
deleted
inserted
replaced
19723:16aa117306ec | 19724:b3e93a05c3ca |
---|---|
1 " This test is in a separate file, because it usually causes reports for memory | 1 " This test is in a separate file, because it usually causes reports for memory |
2 " leaks under valgrind. That is because when fork/exec fails memory is not | 2 " leaks under valgrind. That is because when fork/exec fails memory is not |
3 " freed. Since the process exists right away it's not a real leak. | 3 " freed. Since the process exits right away it's not a real leak. |
4 | 4 |
5 source shared.vim | 5 source shared.vim |
6 | 6 |
7 func Test_job_start_fails() | 7 func Test_job_start_fails() |
8 if has('job') | 8 if has('job') |
12 else | 12 else |
13 call WaitForAssert({-> assert_equal("fail", job_status(job))}) | 13 call WaitForAssert({-> assert_equal("fail", job_status(job))}) |
14 endif | 14 endif |
15 endif | 15 endif |
16 endfunc | 16 endfunc |
17 | |
18 " vim: shiftwidth=2 sts=2 expandtab |