comparison src/testdir/test_terminal2.vim @ 34422:74e92770d59e v9.1.0134

patch 9.1.0134: CI: Test_term_gettitle() is flaky on MacOS 14 Commit: https://github.com/vim/vim/commit/6a46c19b2507bce632b5e67ef31e47e60a95ed10 Author: Christian Brabandt <cb@256bit.org> Date: Sat Feb 24 15:56:34 2024 +0100 patch 9.1.0134: CI: Test_term_gettitle() is flaky on MacOS 14 Problem: Test_term_gettitle() is flaky on MacOS 14 and Github runners Solution: Skip the test on Github CI closes: #14085 It fails with this: '^\\[No Name\\] - VIM\\d*$' does not match 'e] - VIM' It is not clear why term_gettitle() only get's the last part of the expected title (perhaps there is a Carriage return in there or the terminal window is too small?) So let's just skip this test for now. Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 24 Feb 2024 16:15:02 +0100
parents 835fc06c4547
children
comparison
equal deleted inserted replaced
34421:4c9dbb34c398 34422:74e92770d59e
533 533
534 call StopShellInTerminal(buf) 534 call StopShellInTerminal(buf)
535 endfunc 535 endfunc
536 536
537 " Test for term_gettitle() 537 " Test for term_gettitle()
538 " Known to be flaky on Mac-OS X and the GH runners
538 func Test_term_gettitle() 539 func Test_term_gettitle()
539 " term_gettitle() returns an empty string for a non-terminal buffer 540 " term_gettitle() returns an empty string for a non-terminal buffer
540 " and for a non-existing buffer. 541 " and for a non-existing buffer.
541 call assert_equal('', bufnr('%')->term_gettitle()) 542 call assert_equal('', bufnr('%')->term_gettitle())
542 call assert_equal('', term_gettitle(bufnr('$') + 1)) 543 call assert_equal('', term_gettitle(bufnr('$') + 1))
543 544
544 if !has('title') || empty(&t_ts) 545 if !has('title') || empty(&t_ts)
545 throw "Skipped: can't get/set title" 546 throw "Skipped: can't get/set title"
547 endif
548 if has('osx') && !empty($CI) && system('uname -m') =~# 'arm64'
549 " This test often fails with the following error message on Github runners
550 " MacOS-14
551 " '^\\[No Name\\] - VIM\\d*$' does not match 'e] - VIM'
552 " Why? Is the terminal that runs Vim too small?
553 throw 'Skipped: FIXME: Running this test on M1 Mac fails on GitHub Actions'
546 endif 554 endif
547 555
548 let term = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', '-c', 'set title']) 556 let term = term_start([GetVimProg(), '--clean', '-c', 'set noswapfile', '-c', 'set title'])
549 call TermWait(term) 557 call TermWait(term)
550 " When Vim is running as a server then the title ends in VIM{number}, thus 558 " When Vim is running as a server then the title ends in VIM{number}, thus