mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 04:18:18 +00:00
os_set_cloexec: Fix condition. #5986
Also: skip Test_undo_del_chars the right way. #6287
This commit is contained in:
@@ -406,7 +406,7 @@ int os_set_cloexec(const int fd)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if ((fdflags & FD_CLOEXEC) == 0
|
if ((fdflags & FD_CLOEXEC) == 0
|
||||||
&& fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) < 0) {
|
&& fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC) == -1) {
|
||||||
e = errno;
|
e = errno;
|
||||||
ELOG("Failed to set CLOEXEC on descriptor %d: %s", fd, strerror(e));
|
ELOG("Failed to set CLOEXEC on descriptor %d: %s", fd, strerror(e));
|
||||||
errno = e;
|
errno = e;
|
||||||
|
@@ -74,9 +74,8 @@ func BackOne(expected)
|
|||||||
call assert_equal(a:expected, getline(1))
|
call assert_equal(a:expected, getline(1))
|
||||||
endfunc
|
endfunc
|
||||||
|
|
||||||
" Test is disabled: Nvim does not support test_settime().
|
func Test_undo_del_chars()
|
||||||
func Test_undo_del_chars_skipped()
|
throw 'skipped: Nvim does not support test_settime()'
|
||||||
return
|
|
||||||
|
|
||||||
" Setup a buffer without creating undo entries
|
" Setup a buffer without creating undo entries
|
||||||
new
|
new
|
||||||
|
Reference in New Issue
Block a user