Commit: Revert "tests: Test_xrestore() is flaky and cannot recover"
Christian Brabandt <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <[email protected]> |
Revert "tests: Test_xrestore() is flaky and cannot recover" Commit: https://github.com/vim/vim/commit/4e0cd139cbcd1f481957fef4d1a36d91f3c90cc6 Author: h-east <[email protected]> Date: Mon Aug 17 04:38:22 2026 +0900 Revert "tests: Test_xrestore() is flaky and cannot recover" This reverts commit 0912ec20b8e847f0d96be65e7689989edc056b15. diff --git a/src/testdir/test_paste.vim b/src/testdir/test_paste.vim index 0daa5fe58..bd87e3be7 100644 --- a/src/testdir/test_paste.vim +++ b/src/testdir/test_paste.vim @@ -176,9 +176,6 @@ endfunc func CheckCopyPaste() call setline(1, ['copy this', '']) normal 1G0"*y$ - " The selection may not be available right away after connecting to the X - " server, the put below would then throw E353. - call WaitForAssert({-> assert_equal('copy this', getreg('*'))}) normal j"*p call assert_equal('copy this', getline(2)) endfunc @@ -189,20 +186,15 @@ func Test_xrestore() let display = $DISPLAY new - " Restore the display even when a check fails, otherwise the retry runs - " without a connection to the X server. - try - call CheckCopyPaste() - - xrestore - call CheckCopyPaste() - - exe "xrestore " .. display - call CheckCopyPaste() - finally - exe "xrestore " .. display - bwipe! - endtry + call CheckCopyPaste() + + xrestore + call CheckCopyPaste() + + exe "xrestore " .. display + call CheckCopyPaste() + + bwipe! endfunc " Test for 'pastetoggle' -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1wvgn2-007HQJ-Qv%40256bit.org.