View | Details | Raw Unified | Return to bug 236863 | Differences between
and this patch

Collapse All | Expand All

(-)tests/sys/capsicum/Makefile (-1 / +1 lines)
Lines 5-11 Link Here
5
ATF_TESTS_C+=	bindat_connectat
5
ATF_TESTS_C+=	bindat_connectat
6
ATF_TESTS_C+=	ioctls_test
6
ATF_TESTS_C+=	ioctls_test
7
7
8
CFLAGS.bindat_connectat.c+=	-I${SRCTOP}/tests
8
CFLAGS+=	-I${SRCTOP}/tests
9
9
10
WARNS?=	6
10
WARNS?=	6
11
11
(-)tests/sys/capsicum/ioctls_test.c (+4 lines)
Lines 37-42 Link Here
37
37
38
#include <atf-c.h>
38
#include <atf-c.h>
39
39
40
#include "freebsd_test_suite/macros.h"
41
40
/*
42
/*
41
 * A variant of ATF_REQUIRE that is suitable for use in child
43
 * A variant of ATF_REQUIRE that is suitable for use in child
42
 * processes.  This only works if the parent process is tripped up by
44
 * processes.  This only works if the parent process is tripped up by
Lines 73-78 Link Here
73
	char dummy;
75
	char dummy;
74
	int s[2], status;
76
	int s[2], status;
75
77
78
	ATF_REQUIRE_FEATURE("security_capability");
79
76
	s[0] = socket(AF_INET, SOCK_STREAM, 0);
80
	s[0] = socket(AF_INET, SOCK_STREAM, 0);
77
	ATF_REQUIRE(s[0] > 0);
81
	ATF_REQUIRE(s[0] > 0);
78
82

Return to bug 236863