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