comparison src/testdir/test_startup.vim @ 16590:5c212dd3cd64 v8.1.1298

patch 8.1.1298: invalid argument test fails without X clipboard commit https://github.com/vim/vim/commit/5416b75031138182387399f8fe5e17a884414e1a Author: Bram Moolenaar <Bram@vim.org> Date: Wed May 8 18:36:43 2019 +0200 patch 8.1.1298: invalid argument test fails without X clipboard Problem: Invalid argument test fails without X clipboard. Solution: Test -display only with the +xterm_clipboard feature.
author Bram Moolenaar <Bram@vim.org>
date Wed, 08 May 2019 18:45:05 +0200
parents c56fe1427025
children 9c90cf08cfa8
comparison
equal deleted inserted replaced
16589:21a60d40c5ad 16590:5c212dd3cd64
428 call assert_match('^VIM - Vi IMproved .* (.*)$', out[0]) 428 call assert_match('^VIM - Vi IMproved .* (.*)$', out[0])
429 call assert_equal('Argument missing after: "--display"', out[1]) 429 call assert_equal('Argument missing after: "--display"', out[1])
430 call assert_equal('More info with: "vim -h"', out[2]) 430 call assert_equal('More info with: "vim -h"', out[2])
431 endif 431 endif
432 432
433 if has('clipboard') 433 if has('xterm_clipboard')
434 let out = split(system(GetVimCommand() .. ' -display'), "\n") 434 let out = split(system(GetVimCommand() .. ' -display'), "\n")
435 call assert_equal(1, v:shell_error) 435 call assert_equal(1, v:shell_error)
436 call assert_match('^VIM - Vi IMproved .* (.*)$', out[0]) 436 call assert_match('^VIM - Vi IMproved .* (.*)$', out[0])
437 call assert_equal('Argument missing after: "-display"', out[1]) 437 call assert_equal('Argument missing after: "-display"', out[1])
438 call assert_equal('More info with: "vim -h"', out[2]) 438 call assert_equal('More info with: "vim -h"', out[2])