]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/preoslog.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / preoslog.c
index e8615016cca4a233b31d1bbe39fecf3f558b7885..9b1b26141b6513170dd88678ffdcf817b56feff7 100644 (file)
@@ -4,6 +4,8 @@
 #include <string.h>
 #include <errno.h>
 
 #include <string.h>
 #include <errno.h>
 
+#include "test_utils.h"
+
 /*
  * Any change to this structure must be reflected in iBoot / MacEFI / PanicDump / XNU Tests and vice versa.
  */
 /*
  * Any change to this structure must be reflected in iBoot / MacEFI / PanicDump / XNU Tests and vice versa.
  */
@@ -39,21 +41,6 @@ check_for_substrings(const char* string, size_t len)
        return res;
 }
 
        return res;
 }
 
-static boolean_t
-is_development_kernel(void)
-{
-       int ret;
-       int dev = 0;
-       size_t dev_size = sizeof(dev);
-
-       ret = sysctlbyname("kern.development", &dev, &dev_size, NULL, 0);
-       if (ret != 0) {
-               return FALSE;
-       }
-
-       return dev != 0;
-}
-
 /*
  *       Valid cases:
  *       1. Development & Debug iBoot/macEFI provides a preoslog buffer.
 /*
  *       Valid cases:
  *       1. Development & Debug iBoot/macEFI provides a preoslog buffer.