diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-06-30 02:23:41 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-07-14 09:05:52 -0400 |
commit | 0ceebc2c913cc497735e001772cb6b395c36cecc (patch) | |
tree | 4e06241295ab8e32358a06eff245431daae52d24 /test/includes | |
parent | 180c84ed378e694ebcd14198a7436e01462d2c4d (diff) | |
download | rneovim-0ceebc2c913cc497735e001772cb6b395c36cecc.tar.gz rneovim-0ceebc2c913cc497735e001772cb6b395c36cecc.tar.bz2 rneovim-0ceebc2c913cc497735e001772cb6b395c36cecc.zip |
os_open: add unit tests
Diffstat (limited to 'test/includes')
-rw-r--r-- | test/includes/pre/sys/errno.h | 4 | ||||
-rw-r--r-- | test/includes/pre/sys/fcntl.h | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/includes/pre/sys/errno.h b/test/includes/pre/sys/errno.h new file mode 100644 index 0000000000..0b8934d33e --- /dev/null +++ b/test/includes/pre/sys/errno.h @@ -0,0 +1,4 @@ +#include <sys/errno.h> + +static const int kENOENT = ENOENT; +static const int kEEXIST = EEXIST; diff --git a/test/includes/pre/sys/fcntl.h b/test/includes/pre/sys/fcntl.h new file mode 100644 index 0000000000..767c97a631 --- /dev/null +++ b/test/includes/pre/sys/fcntl.h @@ -0,0 +1,7 @@ +#include <sys/fcntl.h> + +static const mode_t kO_RDONLY = O_RDONLY; +static const mode_t kO_WRONLY = O_WRONLY; +static const mode_t kO_RDWR = O_RDWR; +static const mode_t kO_CREAT = O_CREAT; +static const mode_t kO_EXCL = O_EXCL; |