Christian Brabandt | e1dc9a6 | 2023-09-02 14:40:13 +0200 | [diff] [blame] | 1 | " Some tests, that used to crash Vim |
| 2 | source check.vim |
| 3 | source screendump.vim |
| 4 | |
| 5 | CheckScreendump |
| 6 | |
| 7 | func Test_crash1() |
| 8 | " The following used to crash Vim |
| 9 | let opts = #{wait_for_ruler: 0} |
| 10 | let args = ' -u NONE -i NONE -n -e -s -S ' |
| 11 | let buf = RunVimInTerminal(args .. ' crash/poc_huaf1', opts) |
| 12 | call VerifyScreenDump(buf, 'Test_crash_01', {}) |
| 13 | exe buf .. "bw!" |
| 14 | |
| 15 | let buf = RunVimInTerminal(args .. ' crash/poc_huaf2', opts) |
| 16 | call VerifyScreenDump(buf, 'Test_crash_01', {}) |
| 17 | exe buf .. "bw!" |
| 18 | |
| 19 | let buf = RunVimInTerminal(args .. ' crash/poc_huaf3', opts) |
| 20 | call VerifyScreenDump(buf, 'Test_crash_01', {}) |
| 21 | exe buf .. "bw!" |
| 22 | |
| 23 | endfunc |
| 24 | |
| 25 | " vim: shiftwidth=2 sts=2 expandtab |