Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109337358
D29944.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
751 B
Referenced Files
None
Subscribers
None
D29944.diff
View Options
diff --git a/tests/sys/net/routing/rtsock_config.h b/tests/sys/net/routing/rtsock_config.h
--- a/tests/sys/net/routing/rtsock_config.h
+++ b/tests/sys/net/routing/rtsock_config.h
@@ -129,13 +129,11 @@
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++)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 4, 6:21 PM (14 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16458761
Default Alt Text
D29944.diff (751 B)
Attached To
Mode
D29944: Correctly skip rtsock_l3 test when if_epair is not available
Attached
Detach File
Event Timeline
Log In to Comment