summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-03-01 19:52:25 -0500
committerJakob Kaivo <jkk@ung.org>2019-03-01 19:52:25 -0500
commit3819846f8ad95b40d98d0a544fd16533590e30cb (patch)
tree666978ec4c1bffd766bfc723162c715778cd836a
parent7ddf768dad85f1f6b5f3abb245c49c00e63b7111 (diff)
add testing errno as an lvalue and rvalue
-rw-r--r--errno.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/errno.c b/errno.c
index 3418970..4eaed65 100644
--- a/errno.c
+++ b/errno.c
@@ -14,6 +14,8 @@ void test_errno_h(void)
testing_header("errno.h");
test_distinct(errno_values);
+ errno = 0;
+ test_int_equals(errno, 0);
testing_end();
}