Mercurial > vim
comparison src/testdir/test_gui.vim @ 29185:523a97eab139 v8.2.5112
patch 8.2.5112: gui test hangs on MS-Windows
Commit: https://github.com/vim/vim/commit/a272624c763fea9f98510bbc5b1f2b65a309c765
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jun 16 16:36:43 2022 +0100
patch 8.2.5112: gui test hangs on MS-Windows
Problem: Gui test hangs on MS-Windows.
Solution: Use "!start" to start Vim.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Jun 2022 17:45:02 +0200 |
parents | 8f6b850bb8c3 |
children | 8175cd4c8fdd |
comparison
equal
deleted
inserted
replaced
29184:2e561df4e8ba | 29185:523a97eab139 |
---|---|
1592 file Xfile | 1592 file Xfile |
1593 normal axxx | 1593 normal axxx |
1594 confirm qa | 1594 confirm qa |
1595 END | 1595 END |
1596 call writefile(lines, 'Xlines') | 1596 call writefile(lines, 'Xlines') |
1597 execute '!' .. GetVimCommand() .. ' -g -f --clean --gui-dialog-file Xdialog -S Xlines' | 1597 let prefix = '!' |
1598 if has('win32') | |
1599 let prefix = '!start ' | |
1600 endif | |
1601 execute prefix .. GetVimCommand() .. ' -g -f --clean --gui-dialog-file Xdialog -S Xlines' | |
1598 | 1602 |
1599 call WaitForAssert({-> assert_true(filereadable('Xdialog'))}) | 1603 call WaitForAssert({-> assert_true(filereadable('Xdialog'))}) |
1600 call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('<NL>')) | 1604 call assert_match('Question: Save changes to "Xfile"?', readfile('Xdialog')->join('<NL>')) |
1601 | 1605 |
1602 call delete('Xdialog') | 1606 call delete('Xdialog') |