summaryrefslogtreecommitdiff
path: root/regress/lib
diff options
context:
space:
mode:
authorrob <rob@cvs.openbsd.org>2019-05-12 22:17:26 +0000
committerrob <rob@cvs.openbsd.org>2019-05-12 22:17:26 +0000
commit251727744f6be053af1f5c9e5cea4476b16b698c (patch)
tree4b8eb5724a9c0080be7f541b91ea1d90e07aea3a /regress/lib
parentf25d58053009a01720f78c802477e66c6f0c72db (diff)
Add an enum test. Modify some output.
Diffstat (limited to 'regress/lib')
-rw-r--r--regress/lib/libutil/ber/ber_test.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/regress/lib/libutil/ber/ber_test.c b/regress/lib/libutil/ber/ber_test.c
index 5d9f5ac7b13..5eb74320806 100644
--- a/regress/lib/libutil/ber/ber_test.c
+++ b/regress/lib/libutil/ber/ber_test.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ber_test.c,v 1.14 2019/05/12 20:56:11 rob Exp $
+/* $OpenBSD: ber_test.c,v 1.15 2019/05/12 22:17:25 rob Exp $
*/
/*
* Copyright (c) Rob Pierce <rob@openbsd.org>
@@ -81,6 +81,15 @@ struct test_vector test_vectors[] = {
},
},
{
+ FAIL,
+ 0,
+ "enum minimal contents octets (expected failure)",
+ 4,
+ {
+ 0x0a, 0x02, 0x00, 0x01
+ },
+ },
+ {
SUCCEED,
1,
"integer (zero)",
@@ -128,7 +137,7 @@ struct test_vector test_vectors[] = {
{
FAIL,
0,
- "enforce smallest number of contents octets (expected failure)",
+ "integer minimal contents octets (expected failure)",
4,
{
0x02, 0x02, 0x00, 0x01