aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-28 11:10:22 +0200
committerJustin M. Keyes <justinkz@gmail.com>2019-07-28 11:10:22 +0200
commitf4942a63f93e44470d9a7d979b3fb88408d584d1 (patch)
treef9736c3ce9f05739fe350f27e516a7b7627f6057
parente0f2c36667725a23ec13de5564015094871f5aae (diff)
downloadrneovim-f4942a63f93e44470d9a7d979b3fb88408d584d1.tar.gz
rneovim-f4942a63f93e44470d9a7d979b3fb88408d584d1.tar.bz2
rneovim-f4942a63f93e44470d9a7d979b3fb88408d584d1.zip
build/tests: remove pre/uv.h #10531
Initially done in 28e59cb22, but does not appear to be necessary anymore. Uses UV_EEXIST directly, just like UV_ENOENT.
-rw-r--r--test/includes/pre/uv.h4
-rw-r--r--test/unit/os/fs_spec.lua4
2 files changed, 2 insertions, 6 deletions
diff --git a/test/includes/pre/uv.h b/test/includes/pre/uv.h
deleted file mode 100644
index da7818cd07..0000000000
--- a/test/includes/pre/uv.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#include <uv.h>
-
-static const int kUV_ENOENT = UV_ENOENT;
-static const int kUV_EEXIST = UV_EEXIST;
diff --git a/test/unit/os/fs_spec.lua b/test/unit/os/fs_spec.lua
index f1ec94ae87..526a09e845 100644
--- a/test/unit/os/fs_spec.lua
+++ b/test/unit/os/fs_spec.lua
@@ -27,7 +27,7 @@ cimport('./src/nvim/fileio.h')
local fs = cimport('./src/nvim/os/os.h', './src/nvim/path.h')
cppimport('sys/stat.h')
cppimport('fcntl.h')
-cppimport('uv.h')
+cimport('uv.h')
local s = ''
for i = 0, 255 do
@@ -540,7 +540,7 @@ describe('fs.c', function()
itp('returns UV_EEXIST for O_CREAT|O_EXCL on a existing file', function()
assert_file_exists(existing_file)
- eq(ffi.C.kUV_EEXIST, (os_open(existing_file, (bit.bor(ffi.C.kO_CREAT, ffi.C.kO_EXCL)), 0)))
+ eq(ffi.C.UV_EEXIST, (os_open(existing_file, (bit.bor(ffi.C.kO_CREAT, ffi.C.kO_EXCL)), 0)))
end)
itp('sets `rwx` permissions for O_CREAT 700 which then can be closed', function()