forked from aniani/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 #8205)
This commit is contained in:
@@ -285,7 +285,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
|
||||
|
||||
Reference in New Issue
Block a user