Skip if_epair regression test if module doesn't exist
Approved by: kp Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D23876
This commit is contained in:
parent
1328771d9d
commit
8ccf503240
@ -22,6 +22,8 @@ TEST_METADATA+= is_exclusive=true
|
||||
MAN=
|
||||
PROGS+= randsleep
|
||||
|
||||
CFLAGS+= -I${.CURDIR:H:H}
|
||||
|
||||
WARNS?= 6
|
||||
|
||||
.include <bsd.test.mk>
|
||||
|
@ -40,6 +40,7 @@
|
||||
#include <strings.h>
|
||||
|
||||
#include <atf-c.h>
|
||||
#include "freebsd_test_suite/macros.h"
|
||||
|
||||
ATF_TC(params);
|
||||
ATF_TC_HEAD(params, tc)
|
||||
@ -52,9 +53,8 @@ ATF_TC_BODY(params, tc)
|
||||
struct ifreq ifr;
|
||||
int s;
|
||||
|
||||
s = kldload("if_epair");
|
||||
if (s == -1 && errno != EEXIST)
|
||||
atf_tc_fail("Failed to load if_epair");
|
||||
kldload("if_epair");
|
||||
ATF_REQUIRE_KERNEL_MODULE("if_epair");
|
||||
|
||||
s = socket(AF_INET, SOCK_DGRAM, 0);
|
||||
if (s < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user