aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-07 07:06:49 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-11-07 07:33:59 +0800
commitbdf87efeb523aecffde7dbf3c17806f7ca98471f (patch)
treee0966cf863dc3caabd9061492c4a9985712e71f9 /src/nvim/testdir
parentb0190f4543397d6f3485e1eb03f30f80e358c201 (diff)
downloadrneovim-bdf87efeb523aecffde7dbf3c17806f7ca98471f.tar.gz
rneovim-bdf87efeb523aecffde7dbf3c17806f7ca98471f.tar.bz2
rneovim-bdf87efeb523aecffde7dbf3c17806f7ca98471f.zip
vim-patch:8.2.2856: get readonly error for device that can't be written to
Problem: Get readonly error for device that can't be written to. Solution: Check for being able to write first. (closes vim/vim#8205) https://github.com/vim/vim/commit/50157ef1c2e36d8696e79fd688bdd08312196bc6 Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_writefile.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim
index 0ecb25d3e4..b80519f316 100644
--- a/src/nvim/testdir/test_writefile.vim
+++ b/src/nvim/testdir/test_writefile.vim
@@ -298,7 +298,7 @@ func Test_write_errors()
\ && getftype('/dev/loop0') == 'bdev' && !IsRoot()
new
edit /dev/loop0
- call assert_fails('write', 'E505: ')
+ call assert_fails('write', 'E503: ')
call assert_fails('write!', 'E503: ')
close!
endif