- Timestamp:
- Nov 10, 2017 1:34:06 PM (7 years ago)
- Location:
- trunk/src/VBox/Runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
r69111 r69643 47 47 #else 48 48 # include <stdio.h> /* for printf */ 49 #endif 50 51 #ifndef IN_RING0 /* A linking tweak for the testcase: */ 52 # include <iprt/cdefs.h> 53 # undef RTR0DECL 54 # define RTR0DECL(type) DECLHIDDEN(type) RTCALL 49 55 #endif 50 56 … … 117 123 118 124 #define VERR_LDR_UNEXPECTED (-641) 125 126 #ifndef RT_OS_DARWIN 127 # define MAC_OS_X_VERSION_MIN_REQUIRED 1050 128 #endif 119 129 120 130 … … 1086 1096 */ 1087 1097 static bool s_fFirstCall = true; 1098 #ifdef IN_RING3 1099 extern const char *g_pszTestKernel; 1100 #endif 1088 1101 struct 1089 1102 { … … 1092 1105 } aKernels[] = 1093 1106 { 1107 #ifdef IN_RING3 1108 { g_pszTestKernel, VERR_WRONG_ORDER }, 1109 #endif 1094 1110 { "/System/Library/Kernels/kernel", VERR_WRONG_ORDER }, 1095 1111 { "/System/Library/Kernels/kernel.development", VERR_WRONG_ORDER }, -
trunk/src/VBox/Runtime/testcase/Makefile.kmk
r69111 r69643 157 157 tstFileAppendWin-1 \ 158 158 tstRTNtPath-1 \ 159 ntGetTimerResolution 159 ntGetTimerResolution \ 160 tstRTDarwinMachKernel 161 160 162 PROGRAMS.linux += \ 161 163 tstRTProcWait \ -
trunk/src/VBox/Runtime/testcase/tstRTDarwinMachKernel.cpp
r69111 r69643 34 34 #include <iprt/test.h> 35 35 36 /********************************************************************************************************************************* 37 * Global Variables * 38 *********************************************************************************************************************************/ 39 extern const char *g_pszTestKernel = "/no-such-file"; 36 40 37 41 … … 66 70 67 71 68 int main( )72 int main(int argc, char **argv) 69 73 { 70 74 RTTEST hTest; … … 74 78 RTTestBanner(hTest); 75 79 80 /* Optional kernel path as argument. */ 81 if (argc == 2) 82 g_pszTestKernel = argv[1]; 83 #ifndef RT_OS_DARWIN 84 else 85 return RTTestSkipAndDestroy(hTest, "not on darwin"); 86 #endif 87 76 88 dotest(); 77 89
Note:
See TracChangeset
for help on using the changeset viewer.