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