patch 9.0.0584: cscope test with wrong executable name fails
Problem: Cscope test with wrong executable name fails.
Solution: Use /bin/sh to execute the command. (Yegappan Lakshmanan)
diff --git a/src/testdir/test_cscope.vim b/src/testdir/test_cscope.vim
index 37ef1db..b2ecdcc 100644
--- a/src/testdir/test_cscope.vim
+++ b/src/testdir/test_cscope.vim
@@ -241,15 +241,11 @@
let a = execute('cscope kill -1')
call assert_equal('', a)
- " Test: 'csprg' option
- " Skip this with valgrind, it causes spurious leak reports
- " FIXME: this causes failures when timers are used
- if !RunningWithValgrind() && 0
- call assert_equal('cscope', &csprg)
- set csprg=doesnotexist
- call assert_fails('cscope add Xcscope2.out', 'E262:')
- set csprg=cscope
- endif
+ " Test: 'csprg' option invalid command
+ call assert_equal('cscope', &csprg)
+ set csprg=doesnotexist
+ call assert_fails('cscope add Xcscope2.out', 'E609:')
+ set csprg=cscope
" Test: multiple cscope connections
cscope add Xcscope.out