diff options
author | rob <rob@cvs.openbsd.org> | 2019-05-12 22:17:26 +0000 |
---|---|---|
committer | rob <rob@cvs.openbsd.org> | 2019-05-12 22:17:26 +0000 |
commit | 251727744f6be053af1f5c9e5cea4476b16b698c (patch) | |
tree | 4b8eb5724a9c0080be7f541b91ea1d90e07aea3a /regress/lib | |
parent | f25d58053009a01720f78c802477e66c6f0c72db (diff) |
Add an enum test. Modify some output.
Diffstat (limited to 'regress/lib')
-rw-r--r-- | regress/lib/libutil/ber/ber_test.c | 13 |
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 |