diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-03-20 22:16:56 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-03-20 22:16:56 +0100 |
commit | c5cf369e9543ff065e2e1da91da3218c223840e2 (patch) | |
tree | f220b0742f066099882f82e83758ddaba361243d /src/testdir/test_startup.vim | |
parent | a0c8aea479ca055ce43ba2984a9933f6c48e6161 (diff) |
patch 8.2.2632: not all command line arguments are testedv8.2.2632
Problem: Not all command line arguments are tested.
Solution: Add tests for -D and -serverlist. (Dominique Pellé, closes #7992)
Diffstat (limited to 'src/testdir/test_startup.vim')
-rw-r--r-- | src/testdir/test_startup.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim index 17ac94d695..ae12f61873 100644 --- a/src/testdir/test_startup.vim +++ b/src/testdir/test_startup.vim @@ -1121,6 +1121,21 @@ func Test_E_arg() endif endfunc +" Test for the "-D" (debugger) argument +func Test_D_arg() + CheckRunVimInTerminal + + let cmd = GetVimCommandCleanTerm() .. ' -D' + let buf = term_start(cmd, {'term_rows' : 10}) + call WaitForAssert({-> assert_equal("running", term_getstatus(buf))}) + + call WaitForAssert({-> assert_equal('Entering Debug mode. Type "cont" to continue.', + \ term_getline(buf, 7))}) + call WaitForAssert({-> assert_equal('>', term_getline(buf, 10))}) + + call StopVimInTerminal(buf) +endfunc + " Test for too many edit argument errors func Test_too_many_edit_args() " Can't catch the output of gvim. |