comparison src/testdir/test_signals.vim @ 20388:83f390b19223 v8.2.0749

patch 8.2.0749: TERM signal test fails on FreeBSD Commit: https://github.com/vim/vim/commit/55ba4b844f1b0e44f0f2e1bd14d26e7ad2df9ffc Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 13 16:53:49 2020 +0200 patch 8.2.0749: TERM signal test fails on FreeBSD Problem: TERM signal test fails on FreeBSD. Solution: Do not check the messages, the may appear anywhere. (Dominique Pelle, closes #6075)
author Bram Moolenaar <Bram@vim.org>
date Wed, 13 May 2020 17:00:04 +0200
parents f8835e16c34e
children c88ebfcbab03
comparison
equal deleted inserted replaced
20387:b67dde0cb886 20388:83f390b19223
134 call term_sendkeys(buf, ":call setline(1, 'foo')\n") 134 call term_sendkeys(buf, ":call setline(1, 'foo')\n")
135 call WaitForAssert({-> assert_equal('foo', term_getline(buf, 1))}) 135 call WaitForAssert({-> assert_equal('foo', term_getline(buf, 1))})
136 136
137 call assert_false(filereadable('Xsig_TERM')) 137 call assert_false(filereadable('Xsig_TERM'))
138 exe 'silent !kill -s TERM ' .. pid_vim 138 exe 'silent !kill -s TERM ' .. pid_vim
139 call WaitForAssert({-> assert_equal('Vim: Caught deadly signal TERM', term_getline(buf, 1))})
140 call WaitForAssert({-> assert_match('Vim: preserving files\.\.\.$', term_getline(buf, 2))})
141 call WaitForAssert({-> assert_true(filereadable('.Xsig_TERM.swp'))}) 139 call WaitForAssert({-> assert_true(filereadable('.Xsig_TERM.swp'))})
142 140
143 " Don't call StopVimInTerminal() as it expects job to be still running. 141 " Don't call StopVimInTerminal() as it expects job to be still running.
144 call WaitForAssert({-> assert_equal("finished", term_getstatus(buf))}) 142 call WaitForAssert({-> assert_equal("finished", term_getstatus(buf))})
145 143