comparison src/testdir/test_mapping.vim @ 17249:3e2e998ce0db v8.1.1624

patch 8.1.1624: when testing in the GUI may try to run gvim in a terminal commit https://github.com/vim/vim/commit/0d702028feb859e6bde9a0c943d398d86294beb7 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 4 14:20:41 2019 +0200 patch 8.1.1624: when testing in the GUI may try to run gvim in a terminal Problem: When testing in the GUI may try to run gvim in a terminal. Solution: Add the -v argument. (Yee Cheng Chin, closes https://github.com/vim/vim/issues/4605) Don't skip tests that work now.
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Jul 2019 14:30:05 +0200
parents fceb0977275a
children 0da9bc55c31a
comparison
equal deleted inserted replaced
17248:6ad25d3ae8ce 17249:3e2e998ce0db
397 delfunc Select 397 delfunc Select
398 delfunc GetCommand 398 delfunc GetCommand
399 endfunc 399 endfunc
400 400
401 func Test_error_in_map_expr() 401 func Test_error_in_map_expr()
402 if !has('terminal') || has('gui_running') 402 if !has('terminal') || (has('win32') && has('gui_running'))
403 throw 'Skipped: cannot run Vim in a terminal window' 403 throw 'Skipped: cannot run Vim in a terminal window'
404 endif 404 endif
405 405
406 let lines =<< trim [CODE] 406 let lines =<< trim [CODE]
407 func Func() 407 func Func()
411 nmap <expr> ! Func() 411 nmap <expr> ! Func()
412 set updatetime=50 412 set updatetime=50
413 [CODE] 413 [CODE]
414 call writefile(lines, 'Xtest.vim') 414 call writefile(lines, 'Xtest.vim')
415 415
416 let buf = term_start(GetVimCommandClean() .. ' -S Xtest.vim', {'term_rows': 8}) 416 let buf = term_start(GetVimCommandCleanTerm() .. ' -S Xtest.vim', {'term_rows': 8})
417 let job = term_getjob(buf) 417 let job = term_getjob(buf)
418 call WaitForAssert({-> assert_notequal('', term_getline(buf, 8))}) 418 call WaitForAssert({-> assert_notequal('', term_getline(buf, 8))})
419 419
420 " GC must not run during map-expr processing, which can make Vim crash. 420 " GC must not run during map-expr processing, which can make Vim crash.
421 call term_sendkeys(buf, '!') 421 call term_sendkeys(buf, '!')