]>
git.saurik.com Git - apple/xnu.git/blob - tests/sbuf_tests.c
1 #include <darwintest.h>
2 #include <sys/sysctl.h>
4 T_DECL(sbuf_tests
, "invoke the sbuf unit tests")
6 char buf
[5] = { 'A', 'B', 'C', 'D', 0 };
9 ret
= sysctlbyname("kern.sbuf_test", NULL
, NULL
, buf
, sizeof(buf
) - 1);
10 T_ASSERT_POSIX_SUCCESS(ret
, "kernel sbuf tests failed");