Page MenuHomeFreeBSD

D23876.diff
No OneTemporary

D23876.diff

Index: head/tests/sys/net/Makefile
===================================================================
--- head/tests/sys/net/Makefile
+++ head/tests/sys/net/Makefile
@@ -22,6 +22,8 @@
MAN=
PROGS+= randsleep
+CFLAGS+= -I${.CURDIR:H:H}
+
WARNS?= 6
.include <bsd.test.mk>
Index: head/tests/sys/net/if_epair.c
===================================================================
--- head/tests/sys/net/if_epair.c
+++ head/tests/sys/net/if_epair.c
@@ -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 @@
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)

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 21, 7:40 AM (20 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27109703
Default Alt Text
D23876.diff (876 B)

Event Timeline