xref: /xnu-11417.101.15/tests/sched/headers_compat_c.c (revision e3723e1f17661b24996789d8afc084c0c3303b26)
1*e3723e1fSApple OSS Distributions // Copyright (c) 2024 Apple Inc.  All rights reserved.
2*e3723e1fSApple OSS Distributions 
3*e3723e1fSApple OSS Distributions #include <darwintest.h>
4*e3723e1fSApple OSS Distributions #include <sys/sysctl.h>
5*e3723e1fSApple OSS Distributions #include <unistd.h>
6*e3723e1fSApple OSS Distributions 
7*e3723e1fSApple OSS Distributions #include "exported_headers.h"
8*e3723e1fSApple OSS Distributions 
9*e3723e1fSApple OSS Distributions T_GLOBAL_META(T_META_NAMESPACE("xnu.scheduler"),
10*e3723e1fSApple OSS Distributions     T_META_RADAR_COMPONENT_NAME("xnu"),
11*e3723e1fSApple OSS Distributions     T_META_RADAR_COMPONENT_VERSION("scheduler"));
12*e3723e1fSApple OSS Distributions 
13*e3723e1fSApple OSS Distributions T_DECL(headers_compat_c, "Verify that scheduler headers are properly guarded",
14*e3723e1fSApple OSS Distributions     T_META_ENABLED(false)    // Test is at build time.
15*e3723e1fSApple OSS Distributions     ) {
16*e3723e1fSApple OSS Distributions 	// If we're here, it compiled!
17*e3723e1fSApple OSS Distributions 	T_PASS("Great news: it compiles.");
18*e3723e1fSApple OSS Distributions 
19*e3723e1fSApple OSS Distributions 	T_END;
20*e3723e1fSApple OSS Distributions }
21