mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Correctly skip rtsock_l3 test when if_epair is not available
This logic was accidentally changed in67f2f67fc8
Reported By: olivier X-MFC-With:67f2f67fc8
Tested By: kp Reviewed By: kp, melifaro Fixes:67f2f67fc8
("Update rtsock_l3 test after 2fe5a79425c7") Differential Revision: https://reviews.freebsd.org/D29944
This commit is contained in:
parent
3183d0b680
commit
694407528f
@ -129,13 +129,11 @@ config_setup(const atf_tc_t *tc, struct rtsock_config_options *co)
|
||||
ATF_CHECK_ERRNO(0, true);
|
||||
|
||||
if (co->num_interfaces > 0) {
|
||||
if (kldload("if_epair") == -1) {
|
||||
/* Any errno other than EEXIST is fatal. */
|
||||
ATF_REQUIRE_ERRNO(EEXIST, true);
|
||||
/* Clear errno for the following tests. */
|
||||
errno = 0;
|
||||
}
|
||||
/* Try loading if_epair and if that fails skip the test. */
|
||||
kldload("if_epair");
|
||||
ATF_REQUIRE_KERNEL_MODULE("if_epair");
|
||||
/* Clear errno for the following tests. */
|
||||
errno = 0;
|
||||
|
||||
c->ifnames = calloc(co->num_interfaces, sizeof(char *));
|
||||
for (int i = 0; i < co->num_interfaces; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user