From 545ae0a97078ba9469aa24234bb840fa4a517dd2 Mon Sep 17 00:00:00 2001 From: jsing Date: Sat, 30 May 2026 16:55:09 +0000 Subject: [PATCH] Improve test failure message. The test may have matched when it should not have. --- regress/lib/libtls/verify/verifytest.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/regress/lib/libtls/verify/verifytest.c b/regress/lib/libtls/verify/verifytest.c index 57aa992149f..9a5aa140762 100644 --- a/regress/lib/libtls/verify/verifytest.c +++ b/regress/lib/libtls/verify/verifytest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: verifytest.c,v 1.8 2023/05/28 09:02:01 beck Exp $ */ +/* $OpenBSD: verifytest.c,v 1.9 2026/05/30 16:55:09 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing * @@ -497,8 +497,9 @@ do_verify_test(int test_no, struct verify_test *vt) goto done; } if (match != vt->want_match) { - fprintf(stderr, "FAIL: test %i failed to match name '%s'\n", - test_no, vt->name); + fprintf(stderr, "FAIL: test %i %s name '%s'\n", + test_no, vt->want_match ? "failed to match" : "matched", + vt->name); goto done; }