vim-patch:8.2.3256: executable test may fail on new Ubuntu system
Problem: Executable test may fail on new Ubuntu system.
Solution: Consider /usr/bin/cat and /bin/cat the same.
bf634a0a8b
This commit is contained in:
parent
20fc0519af
commit
e98eba9086
|
@ -1006,6 +1006,9 @@ func Test_Executable()
|
|||
if catcmd =~ '\<sbin\>' && result =~ '\<bin\>'
|
||||
call assert_equal('/' .. substitute(catcmd, '\<sbin\>', 'bin', ''), result)
|
||||
else
|
||||
" /bin/cat and /usr/bin/cat may be hard linked, we could get either
|
||||
let result = substitute(result, '/usr/bin/cat', '/bin/cat', '')
|
||||
let catcmd = substitute(catcmd, 'usr/bin/cat', 'bin/cat', '')
|
||||
call assert_equal('/' .. catcmd, result)
|
||||
endif
|
||||
bwipe
|
||||
|
|
Loading…
Reference in New Issue