aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-sandbox_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-sandbox_init.c')
-rw-r--r--test-sandbox_init.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/test-sandbox_init.c b/test-sandbox_init.c
new file mode 100644
index 00000000..a4902ee6
--- /dev/null
+++ b/test-sandbox_init.c
@@ -0,0 +1,13 @@
+#include <sandbox.h>
+
+int
+main(void)
+{
+ char *ep;
+ int rc;
+
+ rc = sandbox_init(kSBXProfileNoInternet, SANDBOX_NAMED, &ep);
+ if (-1 == rc)
+ sandbox_free_error(ep);
+ return(-1 == rc);
+}