From 251727744f6be053af1f5c9e5cea4476b16b698c Mon Sep 17 00:00:00 2001 From: rob Date: Sun, 12 May 2019 22:17:26 +0000 Subject: Add an enum test. Modify some output. --- regress/lib/libutil/ber/ber_test.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'regress/lib') 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 @@ -80,6 +80,15 @@ struct test_vector test_vectors[] = { 0x2a, 0x01, 0x00 }, }, + { + FAIL, + 0, + "enum minimal contents octets (expected failure)", + 4, + { + 0x0a, 0x02, 0x00, 0x01 + }, + }, { SUCCEED, 1, @@ -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 -- cgit v1.2.3