mirror of
https://github.com/openbsd/src.git
synced 2026-06-18 15:23:33 +02:00
Improve test failure message.
The test may have matched when it should not have.
This commit is contained in:
@@ -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 <jsing@openbsd.org>
|
||||
*
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user