blob: 0dea3c2cb1cba74647dd359fa5927f08bbf23f55 [file] [log] [blame]
Christian Brabandte1dc9a62023-09-02 14:40:13 +02001" Some tests, that used to crash Vim
2source check.vim
3source screendump.vim
4
5CheckScreendump
6
7func 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
23endfunc
24
25" vim: shiftwidth=2 sts=2 expandtab