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
This commit is contained in:
Lutz Donnerhacke 2021-06-10 11:54:31 +02:00
parent 0afa9be039
commit 43e4821315

View file

@ -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");