aboutsummaryrefslogtreecommitdiff
path: root/test/includes/pre/uv-errno.h
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-10-27 13:15:41 +0000
committerRui Abreu Ferreira <raf-ep@gmx.com>2015-11-25 23:16:37 +0000
commit28e59cb2235c9cf37571e339bd09df3e8acacaf6 (patch)
treebe681d9df14cb05a3be7316067775e6b2818ea5d /test/includes/pre/uv-errno.h
parentd54338f1e0fe971aad34d9bb6ed17805c38802a3 (diff)
downloadrneovim-28e59cb2235c9cf37571e339bd09df3e8acacaf6.tar.gz
rneovim-28e59cb2235c9cf37571e339bd09df3e8acacaf6.tar.bz2
rneovim-28e59cb2235c9cf37571e339bd09df3e8acacaf6.zip
Use libuv errors instead of errno in unit tests
Replaced old unit tests for errno with libuv error codes UV_ENOENT and UV_EEXIST (for os_open and os_getperms). Added libuv include path to test/includes compiler calls - needed to get hold of libuv headers.
Diffstat (limited to 'test/includes/pre/uv-errno.h')
-rw-r--r--test/includes/pre/uv-errno.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/includes/pre/uv-errno.h b/test/includes/pre/uv-errno.h
new file mode 100644
index 0000000000..6b80f60e5c
--- /dev/null
+++ b/test/includes/pre/uv-errno.h
@@ -0,0 +1,4 @@
+#include <uv-errno.h>
+
+static const int kUV_ENOENT = UV_ENOENT;
+static const int kUV_EEXIST = UV_EEXIST;