Date: Sun, 13 Jun 2021 20:32:22 GMT From: Lutz Donnerhacke <donner@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 43e4821315c3 - main - tests/netgraph: Check for PR241954 Message-ID: <202106132032.15DKWM4R051796@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by donner: URL: https://cgit.FreeBSD.org/src/commit/?id=43e4821315c31db067e23564b9bfafb519e77b2b commit 43e4821315c31db067e23564b9bfafb519e77b2b Author: Lutz Donnerhacke <donner@FreeBSD.org> AuthorDate: 2021-06-10 09:54:31 +0000 Commit: Lutz Donnerhacke <donner@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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106132032.15DKWM4R051796>