summaryrefslogtreecommitdiff
path: root/src/testdir/test_system.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_system.vim')
-rw-r--r--src/testdir/test_system.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/testdir/test_system.vim b/src/testdir/test_system.vim
index f23813936..879eaed3b 100644
--- a/src/testdir/test_system.vim
+++ b/src/testdir/test_system.vim
@@ -55,7 +55,7 @@ func Test_system_exmode()
let cmd = ' -es -c "source Xscript" +q; echo "result=$?"'
" Need to put this in a script, "catch" isn't found after an unknown
" function.
- call writefile(['try', 'call doesnotexist()', 'catch', 'endtry'], 'Xscript')
+ call writefile(['try', 'call doesnotexist()', 'catch', 'endtry'], 'Xscript', 'D')
let a = system(GetVimCommand() . cmd)
call assert_match('result=0', a)
call assert_equal(0, v:shell_error)
@@ -71,7 +71,6 @@ func Test_system_exmode()
let cmd = ' -es -c "source Xscript" +q'
let a = system(GetVimCommand() . cmd)
call assert_notequal(0, v:shell_error)
- call delete('Xscript')
if has('unix') " echo $? only works on Unix
let cmd = ' -es -c "call doesnotexist()" +q; echo $?'