Changeset 11822
- Timestamp:
- 08/29/08 16:21:03 (3 months ago)
- Files:
-
- trunk/include/iprt/initterm.h (modified) (2 diffs)
- trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp (modified) (3 diffs)
- trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp (modified) (3 diffs)
- trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp (modified) (1 diff)
- trunk/src/VBox/Additions/x11/xclient/main.cpp (modified) (1 diff)
- trunk/src/VBox/Additions/x11/xclient/testcase/tstSeamlessX11.cpp (modified) (1 diff)
- trunk/src/VBox/Debugger/testcase/tstVBoxDbg.cpp (modified) (1 diff)
- trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp (modified) (2 diffs)
- trunk/src/VBox/Frontends/VirtualBox/src/main.cpp (modified) (1 diff)
- trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/SUPInstall.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/SUPUninstall.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/tstGetPagingMode.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/tstInit.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/tstLow.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp (modified) (1 diff)
- trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp (modified) (1 diff)
- trunk/src/VBox/Main/darwin/iokit.cpp (modified) (6 diffs)
- trunk/src/VBox/Main/testcase/tstAPI.cpp (modified) (1 diff)
- trunk/src/VBox/Main/testcase/tstCollector.cpp (modified) (1 diff)
- trunk/src/VBox/Main/win/svcmain.cpp (modified) (1 diff)
- trunk/src/VBox/Main/xpcom/server.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/r3/init.cpp (modified) (2 diffs)
- trunk/src/VBox/Runtime/testcase/tstHandleTable.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstRand.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstSemMutex.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstSystemQueryOsInfo.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstThread-1.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstTime-2.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstTime-3.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstTime-4.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstTime.cpp (modified) (1 diff)
- trunk/src/VBox/Runtime/testcase/tstUtf8.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstAnimate.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstCFGM.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstGlobalConfig.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstMicro.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstSSM.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstVMM-2.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstVMM-HwAccm.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstVMM.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstVMMFork.cpp (modified) (7 diffs)
- trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp (modified) (1 diff)
- trunk/src/VBox/VMM/testcase/tstVMREQ.cpp (modified) (1 diff)
- trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.cpp (modified) (2 diffs)
- trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlog.c (modified) (2 diffs)
- trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prinit.c (modified) (1 diff)
- trunk/src/testcase/tstRunTestcases.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/iprt/initterm.h
r11794 r11822 46 46 #ifdef IN_RING3 47 47 /** 48 * Init alizes the runtime library.48 * Initializes the runtime library. 49 49 * 50 50 * @returns iprt status code. 51 */ 52 RTR3DECL(int) RTR3Init(void); 53 54 /** 55 * Initializes the runtime library and try initialize SUPLib too. 51 56 * 52 * @param fInitSUPLib Set if SUPR3Init() shall be called during init (default). 53 * Clear if not to call it. 54 * @param cbReserve Ignored. 57 * @returns IPRT status code. 58 * @param pszProgramPath The path to the program file. 59 * 60 * @remarks Failure to initialize SUPLib is ignored. 55 61 */ 56 RTR3DECL(int) RTR3Init( 57 #ifdef __cplusplus 58 bool fInitSUPLib = true, 59 size_t cbReserve = 0 60 #else 61 bool fInitSUPLib, 62 size_t cbReserve 63 #endif 64 ); 62 RTR3DECL(int) RTR3InitAndSUPLib(void); 63 64 /** 65 * Initializes the runtime library passing it the program path. 66 * 67 * @returns IPRT status code. 68 * @param pszProgramPath The path to the program file. 69 */ 70 RTR3DECL(int) RTR3InitWithProgramPath(const char *pszProgramPath); 71 72 /** 73 * Initializes the runtime library passing it the program path, 74 * and try initialize SUPLib too (failures ignored). 75 * 76 * @returns IPRT status code. 77 * @param pszProgramPath The path to the program file. 78 * 79 * @remarks Failure to initialize SUPLib is ignored. 80 */ 81 RTR3DECL(int) RTR3InitAndSUPLibWithProgramPath(const char *pszProgramPath); 65 82 66 83 /** … … 68 85 */ 69 86 RTR3DECL(void) RTR3Term(void); 70 #endif 87 88 #endif /* IN_RING3 */ 71 89 72 90 trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxTray.cpp
r10778 r11822 409 409 410 410 if (0 == ghSeamlessNotifyEvent) /* If seamless mode is not active / supported, reduce event array count */ 411 dwEventCount = 1; 411 dwEventCount = 1; 412 412 413 413 Log(("VBoxTray: Number of events to wait in main loop: %ld\n", dwEventCount)); … … 491 491 /* Do not use a global namespace ("Global\\") for mutex name here, will blow up NT4 compatibility! */ 492 492 HANDLE hMutexAppRunning = CreateMutex (NULL, FALSE, "VBoxTray"); 493 if ( (hMutexAppRunning != NULL) 493 if ( (hMutexAppRunning != NULL) 494 494 && (GetLastError() == ERROR_ALREADY_EXISTS)) 495 495 { … … 500 500 } 501 501 502 int rc = RTR3Init( false);502 int rc = RTR3Init(); 503 503 if (RT_FAILURE(rc)) 504 504 return rc; trunk/src/VBox/Additions/common/VBoxControl/VBoxControl.cpp
r11563 r11822 540 540 } 541 541 else VBoxControlError("Error retrieving handle to user32.dll!"); 542 542 543 543 return 0; 544 544 } … … 863 863 RegCloseKey(hkeyVideo); 864 864 } 865 865 866 866 return 0; 867 867 } … … 1223 1223 if (!onlyinfo) 1224 1224 { 1225 rrc = RTR3Init( false, 0);1225 rrc = RTR3Init(); /** @todo r=bird: This ALWAYS goes first, the only exception is when you have to parse args to figure out which to call! */ 1226 1226 if (!RT_SUCCESS(rrc)) 1227 1227 { trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r10654 r11822 230 230 * Init globals and such. 231 231 */ 232 RTR3Init( false, 0);232 RTR3Init(); 233 233 g_pszProgName = RTPathFilename(argv[0]); 234 234 for (unsigned j = 0; j < RT_ELEMENTS(g_aServices); j++) trunk/src/VBox/Additions/x11/xclient/main.cpp
r11648 r11822 196 196 197 197 /* Initialise our runtime before all else. */ 198 RTR3Init( false);198 RTR3Init(); 199 199 200 200 /* Parse our option(s) */ trunk/src/VBox/Additions/x11/xclient/testcase/tstSeamlessX11.cpp
r8155 r11822 110 110 std::string sTmp; 111 111 112 RTR3Init( false);112 RTR3Init(); 113 113 std::cout << "VirtualBox guest additions X11 seamless mode testcase" << std::endl; 114 114 if (0 == XInitThreads()) trunk/src/VBox/Debugger/testcase/tstVBoxDbg.cpp
r8155 r11822 43 43 int cErrors = 0; /* error count. */ 44 44 45 RTR3Init ();45 RTR3InitAndSUPLib(); 46 46 RTPrintf(TESTCASE ": TESTING...\n"); 47 47 trunk/src/VBox/Devices/Network/testcase/tstIntNet-1.cpp
r11794 r11822 668 668 * Init the runtime and parse the arguments. 669 669 */ 670 RTR3Init( false, 0);670 RTR3Init(); 671 671 672 672 static RTOPTIONDEF const s_aOptions[] = trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r11725 r11822 944 944 { 945 945 // initialize VBox Runtime 946 RTR3Init (true, ~(size_t)0);946 RTR3InitAndSUPLib(); 947 947 return TrustedMain (argc, argv, envp); 948 948 } trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r11820 r11822 7987 7987 * the support driver. 7988 7988 */ 7989 RTR3Init( false);7989 RTR3Init(); 7990 7990 7991 7991 bool fShowLogo = true; trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r11820 r11822 2928 2928 * Before we do *anything*, we initialize the runtime. 2929 2929 */ 2930 int rcRT = RTR3Init (true, ~(size_t)0);2930 int rcRT = RTR3InitAndSUPLib(); 2931 2931 if (VBOX_FAILURE(rcRT)) 2932 2932 { … … 4756 4756 // /* send Ctrl-Alt-Fx to guest */ 4757 4757 com::SafeArray<LONG> keys(6); 4758 4758 4759 4759 keys[0] = 0x1d; // Ctrl down 4760 4760 keys[1] = 0x38; // Alt down trunk/src/VBox/Frontends/VirtualBox/src/main.cpp
r11737 r11822 272 272 int main (int argc, char **argv, char **envp) 273 273 { 274 /* Initialize VBox Runtime. Initialize the S uplib+GCas well only if we274 /* Initialize VBox Runtime. Initialize the SUPLib as well only if we 275 275 * are really about to start a VM. Don't do this if we are only starting 276 276 * the selector window. */ 277 bool fInit GC= false;277 bool fInitSUPLib = false; 278 278 for (int i = 0; i < argc; i++) 279 279 { 280 280 if (!::strcmp (argv[i], "-startvm" )) 281 281 { 282 fInit GC= true;282 fInitSUPLib = true; 283 283 break; 284 284 } 285 285 } 286 RTR3Init (fInitGC, ~(size_t)0); 286 287 if (!fInitSUPLib) 288 RTR3Init(); 289 else 290 RTR3InitAndSUPLib(); 287 291 288 292 return TrustedMain (argc, argv, envp); trunk/src/VBox/Frontends/VirtualBox4/src/main.cpp
r11737 r11822 291 291 int main (int argc, char **argv, char **envp) 292 292 { 293 /* Initialize VBox Runtime. Initialize the S uplib+GCas well only if we293 /* Initialize VBox Runtime. Initialize the SUPLib as well only if we 294 294 * are really about to start a VM. Don't do this if we are only starting 295 295 * the selector window. */ 296 bool fInit GC= false;296 bool fInitSUPLib = false; 297 297 for (int i = 0; i < argc; i++) 298 298 { 299 299 if (!::strcmp (argv[i], "-startvm" )) 300 300 { 301 fInit GC= true;301 fInitSUPLib = true; 302 302 break; 303 303 } 304 304 } 305 RTR3Init (fInitGC, ~(size_t)0); 305 306 if (!fInitSUPLib) 307 RTR3Init(); 308 else 309 RTR3InitAndSUPLib(); 306 310 307 311 return TrustedMain (argc, argv, envp); trunk/src/VBox/HostDrivers/Support/testcase/SUPInstall.cpp
r8155 r11822 41 41 int main(int argc, char **argv) 42 42 { 43 RTR3Init( false);43 RTR3Init(); 44 44 int rc = SUPInstall(); 45 45 if (VBOX_SUCCESS(rc)) trunk/src/VBox/HostDrivers/Support/testcase/SUPUninstall.cpp
r8155 r11822 41 41 int main(int argc, char **argv) 42 42 { 43 RTR3Init( false);43 RTR3Init(); 44 44 int rc = SUPUninstall(); 45 45 if (VBOX_SUCCESS(rc)) trunk/src/VBox/HostDrivers/Support/testcase/tstContiguous.cpp
r11794 r11822 46 46 int rcRet = 0; 47 47 48 RTR3Init( false);48 RTR3Init(); 49 49 rc = SUPR3Init(NULL); 50 50 RTPrintf("tstContiguous: SUPR3Init -> rc=%Vrc\n", rc); trunk/src/VBox/HostDrivers/Support/testcase/tstGetPagingMode.cpp
r11794 r11822 43 43 { 44 44 int rc; 45 RTR3Init( false);45 RTR3Init(); 46 46 rc = SUPR3Init(NULL); 47 47 if (VBOX_SUCCESS(rc)) trunk/src/VBox/HostDrivers/Support/testcase/tstInit.cpp
r11794 r11822 43 43 { 44 44 int rc; 45 RTR3Init( false);45 RTR3Init(); 46 46 rc = SUPR3Init(NULL); 47 47 RTPrintf("tstInit: SUPR3Init -> rc=%d\n", rc); trunk/src/VBox/HostDrivers/Support/testcase/tstLow.cpp
r11794 r11822 47 47 int rcRet = 0; 48 48 49 RTR3Init( false);49 RTR3Init(); 50 50 RTPrintf("tstLow: TESTING...\n"); 51 51 trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp
r11794 r11822 45 45 int cErrors = 0; 46 46 int rc = 0; 47 RTR3Init (true, _1M*168);47 RTR3InitAndSUPLib(); 48 48 rc = SUPR3Init(NULL); 49 49 cErrors += rc != 0; trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp
r11794 r11822 48 48 RTHCPHYS HCPhys; 49 49 50 RTR3Init (true, ~0);50 RTR3InitAndSUPLib(); 51 51 rc = SUPR3Init(NULL); 52 52 RTPrintf("SUPR3Init -> rc=%d\n", rc); trunk/src/VBox/Main/darwin/iokit.cpp
r11681 r11822 1631 1631 int main(int argc, char **argv) 1632 1632 { 1633 RTR3Init( false);1633 RTR3Init(); 1634 1634 1635 1635 if (1) … … 1646 1646 CFRelease(PrefsRef); 1647 1647 } 1648 } 1648 } 1649 1649 1650 1650 if (1) … … 1676 1676 CFStringGetCString(SCNetworkInterfaceGetLocalizedDisplayName(IfRef), szDisplayName, sizeof(szDisplayName), kCFStringEncodingUTF8); 1677 1677 1678 RTPrintf(" #%u ServiceName=\"%s\" IfBSDName=\"%s\" IfDisplayName=\"%s\"\n", 1678 RTPrintf(" #%u ServiceName=\"%s\" IfBSDName=\"%s\" IfDisplayName=\"%s\"\n", 1679 1679 i, szServiceName, szBSDName, szDisplayName); 1680 1680 } … … 1685 1685 CFRelease(PrefsRef); 1686 1686 } 1687 } 1687 } 1688 1688 1689 1689 if (1) … … 1706 1706 if (SCNetworkInterfaceGetLocalizedDisplayName(IfRef)) 1707 1707 CFStringGetCString(SCNetworkInterfaceGetLocalizedDisplayName(IfRef), szDisplayName, sizeof(szDisplayName), kCFStringEncodingUTF8); 1708 RTPrintf(" #%u BSDName=\"%s\" DisplayName=\"%s\"\n", 1708 RTPrintf(" #%u BSDName=\"%s\" DisplayName=\"%s\"\n", 1709 1709 i, szBSDName, szDisplayName); 1710 1710 } … … 1712 1712 CFRelease(IfsRef); 1713 1713 } 1714 } 1714 } 1715 1715 1716 1716 if (1) trunk/src/VBox/Main/testcase/tstAPI.cpp
r11357 r11822 206 206 * the support driver. 207 207 */ 208 RTR3Init( false);208 RTR3Init(); 209 209 210 210 HRESULT rc; trunk/src/VBox/Main/testcase/tstCollector.cpp
r11181 r11822 69 69 * the support driver. 70 70 */ 71 int rc = RTR3Init( false);71 int rc = RTR3Init(); 72 72 if (RT_FAILURE(rc)) 73 73 { trunk/src/VBox/Main/win/svcmain.cpp
r10868 r11822 163 163 * the support driver. 164 164 */ 165 RTR3Init( false);165 RTR3Init(); 166 166 167 167 lpCmdLine = GetCommandLine(); /* this line necessary for _ATL_MIN_CRT */ trunk/src/VBox/Main/xpcom/server.cpp
r11820 r11822 999 999 * the support driver 1000 1000 */ 1001 RTR3Init( false);1001 RTR3Init(); 1002 1002 1003 1003 nsresult rc; trunk/src/VBox/Runtime/r3/init.cpp
r11794 r11822 103 103 104 104 /** 105 * Initalizes the runtime library. 106 * 107 * @returns iprt status code. 108 * 109 * @param fInitSUPLib Set if SUPR3Init() shall be called during init (default). 110 * Clear if not to call it. 111 * @param cbReserve Ignored. 112 */ 113 RTR3DECL(int) RTR3Init(bool fInitSUPLib, size_t cbReserve) 105 * Internal initialization worker. 106 * 107 * @returns IPRT status code. 108 * @param fInitSUPLib Whether to call SUPR3Init. 109 * @param pszProgramPath The program path, NULL if not specified. 110 */ 111 static int rtR3Init(bool fInitSUPLib, const char *pszProgramPath) 114 112 { 115 113 /* no entry log flow, because prefixes and thread may freak out. */ … … 230 228 } 231 229 230 231 RTR3DECL(int) RTR3Init(void) 232 { 233 return rtR3Init(false /* fInitSUPLib */, NULL); 234 } 235 236 237 RTR3DECL(int) RTR3InitWithProgramPath(const char *pszProgramPath) 238 { 239 return rtR3Init(false /* fInitSUPLib */, pszProgramPath); 240 } 241 242 243 RTR3DECL(int) RTR3InitAndSUPLib(void) 244 { 245 return rtR3Init(true /* fInitSUPLib */, NULL /* pszProgramPath */); 246 } 247 248 249 RTR3DECL(int) RTR3InitAndSUPLibWithProgramPath(const char *pszProgramPath) 250 { 251 return rtR3Init(true /* fInitSUPLib */, pszProgramPath); 252 } 253 254 255 #if 0 /** @todo implement RTR3Term. */ 256 RTR3DECL(void) RTR3Term(void) 257 { 258 } 259 #endif 260 trunk/src/VBox/Runtime/testcase/tstHandleTable.cpp
r11127 r11822 453 453 * Init the runtime and parse the arguments. 454 454 */ 455 RTR3Init( false, 0);455 RTR3Init(); 456 456 457 457 static RTOPTIONDEF const s_aOptions[] = trunk/src/VBox/Runtime/testcase/tstMemAutoPtr.cpp
r11024 r11822 129 129 int main() 130 130 { 131 RTR3Init( false);131 RTR3Init(); 132 132 RTPrintf("tstMemAutoPtr: TESTING...\n"); 133 133 trunk/src/VBox/Runtime/testcase/tstRand.cpp
r11523 r11822 358 358 int main() 359 359 { 360 RTR3Init( false);360 RTR3Init(); 361 361 RTPrintf("tstRand: TESTING...\n"); 362 362 trunk/src/VBox/Runtime/testcase/tstSemMutex.cpp
r8245 r11822 208 208 int main(int argc, char **argv) 209 209 { 210 int rc = RTR3Init( false, 0);210 int rc = RTR3Init(); 211 211 if (RT_FAILURE(rc)) 212 212 { trunk/src/VBox/Runtime/testcase/tstSystemQueryOsInfo.cpp
r11355 r11822 46 46 int main() 47 47 { 48 RTR3Init( false /*fInitSUPLib */);48 RTR3Init(); 49 49 50 50 RTPrintf("tstSystemQueryOsInfo: TESTINGS...\n"); trunk/src/VBox/Runtime/testcase/tstThread-1.cpp
r10794 r11822 54 54 int main(int argc, const char * const *argv) 55 55 { 56 RTR3Init( false, 0);56 RTR3Init(); 57 57 58 58 /* trunk/src/VBox/Runtime/testcase/tstTime-2.cpp
r8245 r11822 44 44 unsigned cErrors = 0; 45 45 int i; 46 RTR3Init ();46 RTR3InitAndSUPLib(); 47 47 RTPrintf("tstTime-2: TESTING...\n"); 48 48 trunk/src/VBox/Runtime/testcase/tstTime-3.cpp
r8245 r11822 73 73 int main(int argc, char **argv) 74 74 { 75 RTR3Init ();75 RTR3InitAndSUPLib(); 76 76 77 77 if (argc <= 1) trunk/src/VBox/Runtime/testcase/tstTime-4.cpp
r8245 r11822 44 44 unsigned cErrors = 0; 45 45 46 RTR3Init ();46 RTR3InitAndSUPLib(); 47 47 RTPrintf("tstTime-4: TESTING...\n"); 48 48 49 49 /* 50 * Check that RTTimeSystemNanoTS doesn't go backwards and 50 * Check that RTTimeSystemNanoTS doesn't go backwards and 51 51 * isn't too far from RTTimeNanoTS(). 52 52 */ trunk/src/VBox/Runtime/testcase/tstTime.cpp
r8245 r11822 43 43 unsigned cErrors = 0; 44 44 int i; 45 RTR3Init ();45 RTR3InitAndSUPLib(); 46 46 RTPrintf("tstTime: TESTING...\n"); 47 47 trunk/src/VBox/Runtime/testcase/tstUtf8.cpp
r8245 r11822 906 906 int main() 907 907 { 908 RTR3Init( false);908 RTR3Init(); 909 909 910 910 InitStrings(); trunk/src/VBox/VMM/testcase/tstAnimate.cpp
r11311 r11822 619 619 int rcRet = 1; 620 620 int rc; 621 RTR3Init ();621 RTR3InitAndSUPLib(); 622 622 623 623 /* trunk/src/VBox/VMM/testcase/tstCFGM.cpp
r11794 r11822 43 43 * Init runtime. 44 44 */ 45 RTR3Init ();45 RTR3InitAndSUPLib(); 46 46 47 47 /* trunk/src/VBox/VMM/testcase/tstGlobalConfig.cpp
r11794 r11822 45 45 int main(int argc, char **argv) 46 46 { 47 RTR3Init( false, 0);47 RTR3Init(); 48 48 49 49 /* trunk/src/VBox/VMM/testcase/tstMicro.cpp
r9193 r11822 341 341 int rcRet = 0; /* error count. */ 342 342 343 RTR3Init ();343 RTR3InitAndSUPLib(); 344 344 345 345 /* trunk/src/VBox/VMM/testcase/tstSSM.cpp
r11794 r11822 613 613 * Init runtime and static data. 614 614 */ 615 RTR3Init ();615 RTR3InitAndSUPLib(); 616 616 RTPrintf("tstSSM: TESTING...\n"); 617 617 initBigMem(); trunk/src/VBox/VMM/testcase/tstVMM-2.cpp
r8155 r11822 288 288 int fPowerOn = 0; 289 289 290 RTR3Init ();290 RTR3InitAndSUPLib(); 291 291 292 292 trunk/src/VBox/VMM/testcase/tstVMM-HwAccm.cpp
r10917 r11822 69 69 int rcRet = 0; /* error count. */ 70 70 71 RTR3Init ();71 RTR3InitAndSUPLib(); 72 72 73 73 /* trunk/src/VBox/VMM/testcase/tstVMM.cpp
r8155 r11822 47 47 int rcRet = 0; /* error count. */ 48 48 49 RTR3Init ();49 RTR3InitAndSUPLib(); 50 50 51 51 /* trunk/src/VBox/VMM/testcase/tstVMMFork.cpp
r8155 r11822 53 53 * Initialize the runtime. 54 54 */ 55 RTR3Init ();55 RTR3InitAndSUPLib(); 56 56 57 57 #ifndef AUTO_TEST_ARGS … … 90 90 ppszArgs[2] = NULL; 91 91 #endif 92 92 93 93 RTPrintf(TESTCASE ": forking current process...\n"); 94 94 pid_t pid = fork(); … … 101 101 else if (pid == 0) 102 102 { 103 /* 103 /* 104 104 * The child process. 105 105 * Write to some local variables to trigger copy-on-write if it's used. … … 119 119 else 120 120 { 121 /* 121 /* 122 122 * The parent process. 123 123 * Wait for child & run VMM test to ensure things are fine. … … 131 131 rcErrors++; 132 132 } 133 133 134 134 if (rcErrors == 0) 135 135 { … … 149 149 else 150 150 RTPrintf(TESTCASE ": fork() and VM test, SUCCESS.\n"); 151 151 152 152 /* 153 153 * Cleanup. … … 165 165 rcErrors++; 166 166 } 167 167 168 168 return rcErrors; 169 169 } trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp
r8155 r11822 97 97 * Init. 98 98 */ 99 RTR3Init( false);99 RTR3Init(); 100 100 RTPrintf("tstVMMR0CallHost-1: Testing...\n"); 101 101 g_Jmp.pvSavedStack = (RTR0PTR)&g_Stack[0]; trunk/src/VBox/VMM/testcase/tstVMREQ.cpp
r11311 r11822 219 219 int main(int argc, char **argv) 220 220 { 221 RTR3Init ();221 RTR3InitAndSUPLib(); 222 222 RTPrintf(TESTCASE ": TESTING...\n"); 223 223 trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcLog.cpp
r3181 r11822 52 52 #undef PAGE_SIZE 53 53 #endif 54 #include <iprt/ runtime.h> // for RTR3Init54 #include <iprt/initterm.h> // for RTR3Init 55 55 #else // !VBOX 56 56 PRBool ipcLogEnabled = PR_FALSE; … … 122 122 #ifdef VBOX 123 123 // initialize VBox Runtime 124 RTR3Init( false);124 RTR3Init(); 125 125 126 126 PL_strncpyz(ipcLogPrefix, prefix, sizeof(ipcLogPrefix)); trunk/src/libs/xpcom18a4/nsprpub/pr/src/io/prlog.c

