comparison src/testdir/test_terminal.vim @ 25969:a5a772dace5b v8.2.3518

patch 8.2.3518: Test_xrestore sometimes fails Commit: https://github.com/vim/vim/commit/f08b0eb8691ff09f98bc4beef986ece1c521655f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 16 13:00:14 2021 +0100 patch 8.2.3518: Test_xrestore sometimes fails Problem: Test_xrestore sometimes fails. Solution: Mark the test as flayky. Move marking test as flaky to the test instead of listing them in runtest.
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Oct 2021 14:15:04 +0200
parents 7a4cc4d3a40a
children fd1cbe72815a
comparison
equal deleted inserted replaced
25968:c506b33fff84 25969:a5a772dace5b
696 exe buf . 'bwipe!' 696 exe buf . 'bwipe!'
697 call assert_equal("", bufname(buf)) 697 call assert_equal("", bufname(buf))
698 endfunction 698 endfunction
699 699
700 func Test_terminal_noblock() 700 func Test_terminal_noblock()
701 let g:test_is_flaky = 1
701 let buf = term_start(&shell) 702 let buf = term_start(&shell)
702 let wait_time = 5000 703 let wait_time = 5000
703 let letters = 'abcdefghijklmnopqrstuvwxyz' 704 let letters = 'abcdefghijklmnopqrstuvwxyz'
704 if has('bsd') || has('mac') || has('sun') 705 if has('bsd') || has('mac') || has('sun')
705 " The shell or something else has a problem dealing with more than 1000 706 " The shell or something else has a problem dealing with more than 1000
803 call assert_equal(123, bufnr()->term_getjob()->job_info().exitval) 804 call assert_equal(123, bufnr()->term_getjob()->job_info().exitval)
804 %bwipe! 805 %bwipe!
805 endfunc 806 endfunc
806 807
807 func Test_terminal_no_cmd() 808 func Test_terminal_no_cmd()
809 let g:test_is_flaky = 1
808 let buf = term_start('NONE', {}) 810 let buf = term_start('NONE', {})
809 call assert_notequal(0, buf) 811 call assert_notequal(0, buf)
810 812
811 let pty = job_info(term_getjob(buf))['tty_out'] 813 let pty = job_info(term_getjob(buf))['tty_out']
812 call assert_notequal('', pty) 814 call assert_notequal('', pty)
853 \ "err_buf": bufnr("%") 855 \ "err_buf": bufnr("%")
854 \ })', 'E474:') 856 \ })', 'E474:')
855 endfunc 857 endfunc
856 858
857 func Test_terminal_redir_file() 859 func Test_terminal_redir_file()
860 let g:test_is_flaky = 1
858 let cmd = Get_cat_123_cmd() 861 let cmd = Get_cat_123_cmd()
859 let buf = term_start(cmd, {'out_io': 'file', 'out_name': 'Xfile'}) 862 let buf = term_start(cmd, {'out_io': 'file', 'out_name': 'Xfile'})
860 call TermWait(buf) 863 call TermWait(buf)
861 " ConPTY may precede escape sequence. There are things that are not so. 864 " ConPTY may precede escape sequence. There are things that are not so.
862 if !has('conpty') 865 if !has('conpty')
944 exe buf . 'bwipe' 947 exe buf . 'bwipe'
945 unlet g:job 948 unlet g:job
946 endfunc 949 endfunc
947 950
948 func Test_terminal_composing_unicode() 951 func Test_terminal_composing_unicode()
952 let g:test_is_flaky = 1
949 let save_enc = &encoding 953 let save_enc = &encoding
950 set encoding=utf-8 954 set encoding=utf-8
951 955
952 if has('win32') 956 if has('win32')
953 let cmd = "cmd /K chcp 65001" 957 let cmd = "cmd /K chcp 65001"