Mercurial > vim
comparison src/testdir/test_xxd.vim @ 33122:2946268e7c48 v9.0.1843
patch 9.0.1843: xxd color test flaky
Commit: https://github.com/vim/vim/commit/b2422f75408a41c77620c0d0f956b9728810c6ef
Author: Christian Brabandt <cb@256bit.org>
Date: Sat Sep 2 16:01:18 2023 +0200
patch 9.0.1843: xxd color test flaky
Problem: xxd color test flaky
Solution: Filter unneeded lines
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 02 Sep 2023 16:15:03 +0200 |
parents | 79b2eb83f2df |
children | 3395f1cbe3ab |
comparison
equal
deleted
inserted
replaced
33121:42c7a213f574 | 33122:2946268e7c48 |
---|---|
575 \ "000000f0: f0f1 f2f3 f4f5 f6f7 f8f9 fafb fcfd feff ................"] | 575 \ "000000f0: f0f1 f2f3 f4f5 f6f7 f8f9 fafb fcfd feff ................"] |
576 call writefile(data, 'Xinput', 'D') | 576 call writefile(data, 'Xinput', 'D') |
577 | 577 |
578 call system(s:xxd_cmd .. ' -r < Xinput > XXDfile_colors') | 578 call system(s:xxd_cmd .. ' -r < Xinput > XXDfile_colors') |
579 | 579 |
580 let $PS1='$ ' | |
580 let buf = RunVimInTerminal('', #{rows: 20, cmd: 'sh'}) | 581 let buf = RunVimInTerminal('', #{rows: 20, cmd: 'sh'}) |
581 call term_sendkeys(buf, s:xxd_cmd .. " -R never < XXDfile_colors\<cr>") | 582 call term_sendkeys(buf, s:xxd_cmd .. " -R never < XXDfile_colors\<cr>") |
582 call TermWait(buf) | 583 call TermWait(buf) |
583 call VerifyScreenDump(buf, 'Test_xxd_color_0', {}) | 584 call VerifyScreenDump(buf, 'Test_xxd_color_0', {}) |
584 | 585 |
589 call VerifyScreenDump(buf, 'Test_xxd_color_1', {}) | 590 call VerifyScreenDump(buf, 'Test_xxd_color_1', {}) |
590 | 591 |
591 call term_sendkeys(buf, "exit\<CR>") | 592 call term_sendkeys(buf, "exit\<CR>") |
592 | 593 |
593 call delete('XXDfile_colors') | 594 call delete('XXDfile_colors') |
595 unlet! $PS1 | |
594 endfunc | 596 endfunc |
595 " vim: shiftwidth=2 sts=2 expandtab | 597 " vim: shiftwidth=2 sts=2 expandtab |