if_ovpn tests: skip the if_ovpn_c test if if_ovpn.ko isn't loaded
Skip the test (rather than loading it) if if_ovpn.ko isn't loaded. Match the behaviour of other tests. Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
8dff0b6761
commit
69361b8785
@ -88,7 +88,8 @@ ATF_TC_BODY(tcp, tc)
|
|||||||
nvlist_t *nvl;
|
nvlist_t *nvl;
|
||||||
|
|
||||||
/* Ensure the module is loaded. */
|
/* Ensure the module is loaded. */
|
||||||
(void)kldload("if_ovpn");
|
if (kldfind("if_ovpn") == -1 && errno == ENOENT)
|
||||||
|
atf_tc_skip("if_ovpn not loaded");
|
||||||
|
|
||||||
ovpn_fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0);
|
ovpn_fd = socket(AF_INET, SOCK_STREAM | SOCK_NONBLOCK, 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user