diff options
author | Kory Maincent <kory.maincent@bootlin.com> | 2021-01-29 18:30:37 +0100 |
---|---|---|
committer | Petr Vorel <pvorel@suse.cz> | 2021-02-05 11:46:07 +0100 |
commit | e87631293883a090603bb38f3da6b78742ab9827 (patch) | |
tree | eb79d293375909e1ba454a212bacbc09af52da8b /utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c | |
parent | 0592901cf8e36a37b0a3ff12b8bccb1f7fa839bf (diff) |
sctp/func_test: add check on the sctp driver
Add the verification on the sctp driver for all the sctp tests.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Diffstat (limited to 'utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c')
-rw-r--r-- | utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c b/utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c index 09323ca9e..436a0b785 100644 --- a/utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c +++ b/utils/sctp/func_tests/test_1_to_1_socket_bind_listen.c @@ -71,6 +71,7 @@ #include <netinet/sctp.h> #include <sys/uio.h> #include <sctputil.h> +#include "tst_kernel.h" #define SCTP_RESERVED_PORT 7 #define SCTP_INV_LOOPBACK "172.31.43.112" @@ -90,6 +91,9 @@ main(void) struct sockaddr_in bind_addr; + if (tst_check_driver("sctp")) + tst_brkm(TCONF, tst_exit, "sctp driver not available"); + /* Rather than fflush() throughout the code, set stdout to * be unbuffered. */ |