diff options
author | 2019-03-27 16:49:10 +0000 | |
---|---|---|
committer | 2019-03-27 16:49:10 +0000 | |
commit | 68cc6c26d75b6411e3eefae4831fa0d0e17e0071 (patch) | |
tree | 8cf3875f736a761a82b7bc68e00a11a7606d3176 | |
parent | Check errno on expected failures. Also fix some output wording. (diff) | |
download | wireguard-openbsd-68cc6c26d75b6411e3eefae4831fa0d0e17e0071.tar.xz wireguard-openbsd-68cc6c26d75b6411e3eefae4831fa0d0e17e0071.zip |
Replace "garbage" test with an explicit test of an incorrect length (i.e. not
enough data). Expects a failure (with errno = ECANCELED).
-rw-r--r-- | regress/lib/libutil/ber/ber_test.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/lib/libutil/ber/ber_test.c b/regress/lib/libutil/ber/ber_test.c index 806230ed97e..21f7ad040cd 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.5 2019/03/27 16:22:33 rob Exp $ +/* $OpenBSD: ber_test.c,v 1.6 2019/03/27 16:49:10 rob Exp $ */ /* * Copyright (c) Rob Pierce <rob@openbsd.org> @@ -186,10 +186,10 @@ struct test_vector test_vectors[] = { { FAIL, 0, - "garbage (expected failure)", - 4, + "incorrect length - not enough data (expected failure)", + 3, { - 0x99, 0x53, 0x22, 0x66 + 0x02, 0x02, 0x01 } } }; |