]> git.saurik.com Git - apple/xnu.git/blob - tests/zalloc.c
xnu-7195.81.3.tar.gz
[apple/xnu.git] / tests / zalloc.c
1 #include <sys/sysctl.h>
2 #include <darwintest.h>
3 #include <darwintest_utils.h>
4
5 T_DECL(basic_zone_test, "General zalloc test",
6 T_META_NAMESPACE("xnu.vm"),
7 T_META_CHECK_LEAKS(false))
8 {
9 unsigned int count = 1;
10 size_t s = sizeof(count);
11 int rc;
12
13 rc = sysctlbyname("kern.run_zone_test", &count, &s, &count, s);
14 T_ASSERT_POSIX_SUCCESS(rc, "run_zone_test");
15 }