]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/ldt.c
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / ldt.c
index e6261ddae850aec86e8270a4a823be4522b7cd31..c97519e639c18221b2de99e1f3a69489717e7fe1 100644 (file)
@@ -1073,6 +1073,15 @@ T_DECL(ldt64_with_bsd_sighandling,
        pthread_t cmthread;
        thread_arg_t cmarg;
 
+       int translated = 0;
+       size_t translated_size = sizeof(int);
+
+       sysctlbyname("sysctl.proc_translated", &translated, &translated_size, NULL, 0);
+
+       if (translated) {
+               T_SKIP("Skipping this test because it is translated");
+       }
+
        setup_signal_handling();
 
 #ifndef STANDALONE
@@ -1108,6 +1117,15 @@ T_DECL(ldt64_with_mach_exception_handling,
        pthread_t cmthread;
        thread_arg_t cmarg;
 
+       int translated = 0;
+       size_t translated_size = sizeof(int);
+
+       sysctlbyname("sysctl.proc_translated", &translated, &translated_size, NULL, 0);
+
+       if (translated) {
+               T_SKIP("Skipping this test because it is translated");
+       }
+
 #ifndef STANDALONE
        T_SETUPBEGIN;
 #endif