vim-patch:8.1.0262: not enough testing for getftype()

Problem:    Not enough testing for getftype().
Solution:   Add a test. (Dominique Pelle, closes vim/vim#3300)
1598f9937a
This commit is contained in:
Jan Edmund Lazo
2018-08-13 16:01:56 -04:00
parent 163680a58e
commit a1a5e35e9a
2 changed files with 36 additions and 1 deletions

View File

@@ -9874,7 +9874,7 @@ static void f_getftype(typval_T *argvars, typval_T *rettv, FunPtr fptr)
# endif
# ifdef S_ISSOCK
else if (S_ISSOCK(mode))
t = "fifo";
t = "socket";
# endif
else
t = "other";