diff options
author | 2019-05-12 22:17:25 +0000 | |
---|---|---|
committer | 2019-05-12 22:17:25 +0000 | |
commit | ba9a685bbedd338f092a02fa9c8b6db6a1d33e88 (patch) | |
tree | f1008567569cc31ee602ac9c2f4c3ef24a9a0886 | |
parent | Use .OBJDIR. (diff) | |
download | wireguard-openbsd-ba9a685bbedd338f092a02fa9c8b6db6a1d33e88.tar.xz wireguard-openbsd-ba9a685bbedd338f092a02fa9c8b6db6a1d33e88.zip |
Add an enum test. Modify some output.
-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 |