From 0ceebc2c913cc497735e001772cb6b395c36cecc Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 30 Jun 2014 02:23:41 -0400 Subject: os_open: add unit tests --- test/includes/pre/sys/errno.h | 4 ++++ test/includes/pre/sys/fcntl.h | 7 +++++++ 2 files changed, 11 insertions(+) create mode 100644 test/includes/pre/sys/errno.h create mode 100644 test/includes/pre/sys/fcntl.h (limited to 'test/includes') 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 + +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 + +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; -- cgit