aboutsummaryrefslogtreecommitdiff
path: root/utils/sctp/func_tests/test_getname.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/sctp/func_tests/test_getname.c')
-rw-r--r--utils/sctp/func_tests/test_getname.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/sctp/func_tests/test_getname.c b/utils/sctp/func_tests/test_getname.c
index 653bf7167..2d7916ccd 100644
--- a/utils/sctp/func_tests/test_getname.c
+++ b/utils/sctp/func_tests/test_getname.c
@@ -49,6 +49,7 @@
#include <errno.h>
#include <netinet/sctp.h>
#include <sctputil.h>
+#include "tst_kernel.h"
char *TCID = __FILE__;
int TST_TOTAL = 13;
@@ -69,6 +70,9 @@ main(void)
int fd, err_no = 0;
char filename[21];
+ 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.
*/