aboutsummaryrefslogtreecommitdiff
path: root/test/includes/pre/uv.h
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-07-09 11:00:01 -0400
committerJames McCoy <jamessan@jamessan.com>2018-07-11 00:26:07 -0400
commitba7704ab4ea6186f0a3090b930a4be7e3aa9857c (patch)
treec8e64f3dae2afbac5fef8bd2b8530c3c644365ad /test/includes/pre/uv.h
parentec6e78e77ca3b3a2b8bbe8b472cf8c5d6545c82d (diff)
downloadrneovim-ba7704ab4ea6186f0a3090b930a4be7e3aa9857c.tar.gz
rneovim-ba7704ab4ea6186f0a3090b930a4be7e3aa9857c.tar.bz2
rneovim-ba7704ab4ea6186f0a3090b930a4be7e3aa9857c.zip
test: Rename includes/pre/uv-errno.h to includes/pre/uv.h
libuv users are only supposed to directly include uv.h. In v1.21.0, all the uv-*.h headers were renamed to uv/*.h, which caused the unit tests to fail with [123/125] Generating post/uv-errno.h FAILED: test/includes/post/uv-errno.h cd «SRCDIR»/src/neovim/build/test/includes && /usr/bin/clang -std=c99 -E -P «SRCDIR»/src/neovim/test/includes/pre/uv-errno.h -I/usr/include -I/usr/include -o «SRCDIR»/neovim/build/test/includes/post/uv-errno.h «SRCDIR»/src/neovim/test/includes/pre/uv-errno.h:1:10: error: 'uv-errno.h' file not found with <angled> include; use "quotes" instead #include <uv-errno.h> ^~~~~~~~~~~~ "uv-errno.h" The intention of the file is to extend libuv's error constants with more values used by the unit tests. This can just as easily be achieved without poking into pseudo-private header files.
Diffstat (limited to 'test/includes/pre/uv.h')
-rw-r--r--test/includes/pre/uv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/includes/pre/uv.h b/test/includes/pre/uv.h
new file mode 100644
index 0000000000..da7818cd07
--- /dev/null
+++ b/test/includes/pre/uv.h
@@ -0,0 +1,4 @@
+#include <uv.h>
+
+static const int kUV_ENOENT = UV_ENOENT;
+static const int kUV_EEXIST = UV_EEXIST;