aboutsummaryrefslogtreecommitdiff
path: root/utils/sctp/func_tests/test_1_to_1_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/sctp/func_tests/test_1_to_1_threads.c')
-rw-r--r--utils/sctp/func_tests/test_1_to_1_threads.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/sctp/func_tests/test_1_to_1_threads.c b/utils/sctp/func_tests/test_1_to_1_threads.c
index e2a7eeeed..2cf96b186 100644
--- a/utils/sctp/func_tests/test_1_to_1_threads.c
+++ b/utils/sctp/func_tests/test_1_to_1_threads.c
@@ -49,6 +49,7 @@
#include <sys/uio.h>
#include <linux/socket.h>
#include <sctputil.h>
+#include "tst_kernel.h"
#define THREADS 10 /* FIXME should be 500 instead of 10 */
#define THREAD_SND_RCV_LOOPS 10
@@ -146,6 +147,9 @@ main(void)
socklen_t len = sizeof(struct sockaddr_in);
struct sockaddr_in svr_addr;
+ if (tst_check_driver("sctp"))
+ tst_brkm(TCONF, tst_exit, "sctp driver not available");
+
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);