]>
git.saurik.com Git - apple/xnu.git/blob - tools/tests/unit_tests/sampletest.c
3 Sample test file. Do not remove this.
5 int main(int argc
, char *argv
[]){
6 char os_version
[20] = TARGET_OS_VERS
;
7 char os_build
[20] = TARGET_OS_BUILD_VERS
;
8 printf("Sample test for xnu unit tests. This file is just an example for future unit tests.\n");
9 printf("This test was build with OS version %s and build %s\n", os_version
, os_build
);
10 /* an example of how SDKTARGET is used for different builds */
11 #ifdef TARGET_SDK_macosx
12 printf("The SDKTARGET for building this test is macosx\n");
15 #ifdef TARGET_SDK_macosx_internal
16 printf("The SDKTARGET for building this test is macosx.internal\n");
19 #ifdef TARGET_SDK_iphoneos
20 printf("The SDKTARGET for building this test is iphoneos\n");
23 #ifdef TARGET_SDK_iphoneos_internal
24 printf("The SDKTARGET for building this test is iphoneos.internal\n");