git: 43e4821315c3 - main - tests/netgraph: Check for PR241954
Lutz Donnerhacke
donner at FreeBSD.org
Sun Jun 13 20:32:23 UTC 2021
The branch main has been updated by donner:
URL: https://cgit.FreeBSD.org/src/commit/?id=43e4821315c31db067e23564b9bfafb519e77b2b
commit 43e4821315c31db067e23564b9bfafb519e77b2b
Author: Lutz Donnerhacke <donner at FreeBSD.org>
AuthorDate: 2021-06-10 09:54:31 +0000
Commit: Lutz Donnerhacke <donner at FreeBSD.org>
CommitDate: 2021-06-13 20:29:56 +0000
tests/netgraph: Check for PR241954
Add tests to check for renaming issues reported in PR241954 and solved
in D30110.
MFC: Together with D30629
Differential Revision: https://reviews.freebsd.org/D30713
---
tests/sys/netgraph/basic.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/sys/netgraph/basic.c b/tests/sys/netgraph/basic.c
index 83a129a1972a..573422add694 100644
--- a/tests/sys/netgraph/basic.c
+++ b/tests/sys/netgraph/basic.c
@@ -73,6 +73,13 @@ ATF_TC_BODY(node, dummy)
ng_mkpeer(".", "a", "hub", "a");
ng_name("a", "test hub");
+ ng_errors(PASS);
+ ng_name("a", "test hub");
+ ng_errors(FAIL);
+ if (errno == EADDRINUSE)
+ atf_tc_expect_fail("PR241954");
+ ATF_CHECK_ERRNO(0, 1);
+ atf_tc_expect_pass();
ng_connect(".", "b", "test hub:", "b");
ng_connect(".", "c", "test hub:", "c");
More information about the dev-commits-src-main
mailing list