summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2026-05-30 16:55:09 +0000
committerjsing <>2026-05-30 16:55:09 +0000
commite1ba3cf88c6e568c66f3e8495b4a188af7e3dd62 (patch)
tree1c063826ccac3945fea534812583c2e0a714ce67 /src
parentc38a6199638d1967d7ffadf768d4f8d5dfaf5f04 (diff)
downloadopenbsd-e1ba3cf88c6e568c66f3e8495b4a188af7e3dd62.tar.gz
openbsd-e1ba3cf88c6e568c66f3e8495b4a188af7e3dd62.tar.bz2
openbsd-e1ba3cf88c6e568c66f3e8495b4a188af7e3dd62.zip
Improve test failure message.
The test may have matched when it should not have.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libtls/verify/verifytest.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regress/lib/libtls/verify/verifytest.c b/src/regress/lib/libtls/verify/verifytest.c
index 57aa992149..9a5aa14076 100644
--- a/src/regress/lib/libtls/verify/verifytest.c
+++ b/src/regress/lib/libtls/verify/verifytest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: verifytest.c,v 1.8 2023/05/28 09:02:01 beck Exp $ */ 1/* $OpenBSD: verifytest.c,v 1.9 2026/05/30 16:55:09 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -497,8 +497,9 @@ do_verify_test(int test_no, struct verify_test *vt)
497 goto done; 497 goto done;
498 } 498 }
499 if (match != vt->want_match) { 499 if (match != vt->want_match) {
500 fprintf(stderr, "FAIL: test %i failed to match name '%s'\n", 500 fprintf(stderr, "FAIL: test %i %s name '%s'\n",
501 test_no, vt->name); 501 test_no, vt->want_match ? "failed to match" : "matched",
502 vt->name);
502 goto done; 503 goto done;
503 } 504 }
504 505