diff options
author | David Robillard <d@drobilla.net> | 2022-10-20 21:34:20 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-21 12:45:39 -0400 |
commit | d072adfbe40e15715e2065f1900f8d5a76491c5f (patch) | |
tree | 350f7c5c70e84d7a1d98a8e9389af4a4d3631cb1 /test | |
parent | 60e86c7b2a05dab33fc66f4fa5b2954d79456cb6 (diff) | |
download | zix-d072adfbe40e15715e2065f1900f8d5a76491c5f.tar.gz zix-d072adfbe40e15715e2065f1900f8d5a76491c5f.tar.bz2 zix-d072adfbe40e15715e2065f1900f8d5a76491c5f.zip |
Hide errno utility functions
Diffstat (limited to 'test')
-rw-r--r-- | test/test_status.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/test_status.c b/test/test_status.c index 1a76ac2..a47181c 100644 --- a/test/test_status.c +++ b/test/test_status.c @@ -6,32 +6,10 @@ #include "zix/common.h" #include <assert.h> -#include <errno.h> -#include <limits.h> #include <stdio.h> #include <string.h> static void -test_errno_status(void) -{ - assert(zix_errno_status(0) == ZIX_STATUS_SUCCESS); - assert(zix_errno_status(INT_MAX) == ZIX_STATUS_ERROR); - -#ifdef EEXIST - assert(zix_errno_status(EEXIST) == ZIX_STATUS_EXISTS); -#endif -#ifdef EINVAL - assert(zix_errno_status(EINVAL) == ZIX_STATUS_BAD_ARG); -#endif -#ifdef EPERM - assert(zix_errno_status(EPERM) == ZIX_STATUS_BAD_PERMS); -#endif -#ifdef ETIMEDOUT - assert(zix_errno_status(ETIMEDOUT) == ZIX_STATUS_TIMEOUT); -#endif -} - -static void test_strerror(void) { const char* msg = zix_strerror(ZIX_STATUS_SUCCESS); @@ -54,7 +32,6 @@ test_strerror(void) int main(void) { - test_errno_status(); test_strerror(); return 0; } |