aboutsummaryrefslogtreecommitdiff
path: root/utils/sctp/func_tests/test_1_to_1_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/sctp/func_tests/test_1_to_1_events.c')
-rw-r--r--utils/sctp/func_tests/test_1_to_1_events.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/sctp/func_tests/test_1_to_1_events.c b/utils/sctp/func_tests/test_1_to_1_events.c
index 57fb842e3..447845ff3 100644
--- a/utils/sctp/func_tests/test_1_to_1_events.c
+++ b/utils/sctp/func_tests/test_1_to_1_events.c
@@ -44,6 +44,7 @@
#include <netinet/sctp.h>
#include <sctputil.h>
#include <string.h>
+#include "tst_kernel.h"
char *TCID = __FILE__;
int TST_TOTAL = 4;
@@ -68,6 +69,9 @@ main(void)
uint32_t ppid;
uint32_t stream;
+ 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.
*/