Mercurial > vim
comparison src/testdir/test_signals.vim @ 28171:b4c111ea83b1 v8.2.4611
patch 8.2.4611: typos in tests; one lua line not covered by test
Commit: https://github.com/vim/vim/commit/81b573d7e55bd48988f298ce8e652d902e9bdeba
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Tue Mar 22 21:14:55 2022 +0000
patch 8.2.4611: typos in tests; one lua line not covered by test
Problem: Typos in tests; one lua line not covered by test.
Solution: Fix typos. Add test case. (Dominique Pell?, closes https://github.com/vim/vim/issues/9994)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 22 Mar 2022 22:30:03 +0100 |
parents | 3c1dcb63f579 |
children | cf881b3169ce |
comparison
equal
deleted
inserted
replaced
28170:e882a67c742e | 28171:b4c111ea83b1 |
---|---|
97 | 97 |
98 " Check that an endless loop in Vim is interrupted by signal INT. | 98 " Check that an endless loop in Vim is interrupted by signal INT. |
99 call term_sendkeys(buf, ":while 1 | endwhile\n") | 99 call term_sendkeys(buf, ":while 1 | endwhile\n") |
100 call WaitForAssert({-> assert_equal(':while 1 | endwhile', term_getline(buf, 6))}) | 100 call WaitForAssert({-> assert_equal(':while 1 | endwhile', term_getline(buf, 6))}) |
101 exe 'silent !kill -s INT ' .. pid_vim | 101 exe 'silent !kill -s INT ' .. pid_vim |
102 call term_sendkeys(buf, ":call setline(1, 'INTERUPTED')\n") | 102 call term_sendkeys(buf, ":call setline(1, 'INTERRUPTED')\n") |
103 call WaitForAssert({-> assert_equal('INTERUPTED', term_getline(buf, 1))}) | 103 call WaitForAssert({-> assert_equal('INTERRUPTED', term_getline(buf, 1))}) |
104 | 104 |
105 call StopVimInTerminal(buf) | 105 call StopVimInTerminal(buf) |
106 endfunc | 106 endfunc |
107 | 107 |
108 " Test signal TSTP. Handler sets got_tstp. | 108 " Test signal TSTP. Handler sets got_tstp. |