Changeset 80282 in vbox for trunk/src/VBox/VMM/testcase
- Timestamp:
- Aug 15, 2019 7:36:15 AM (5 years ago)
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/Makefile.kmk
r80003 r80282 61 61 ifdef VBOX_WITH_TESTCASES 62 62 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win" 63 PROGRAMS += tstCFGMHardened tst SSMHardened tstVMREQHardened tstMMHyperHeapHardened tstAnimateHardened64 DLLS += tstCFGM tst SSM tstVMREQ tstMMHyperHeap tstAnimate63 PROGRAMS += tstCFGMHardened tstVMREQHardened tstMMHyperHeapHardened tstAnimateHardened 64 DLLS += tstCFGM tstVMREQ tstMMHyperHeap tstAnimate 65 65 else 66 PROGRAMS += tstCFGM tst SSM tstVMREQ tstMMHyperHeap tstAnimate66 PROGRAMS += tstCFGM tstVMREQ tstMMHyperHeap tstAnimate 67 67 endif 68 68 PROGRAMS += \ 69 69 tstCompressionBenchmark \ 70 70 tstIEMCheckMc \ 71 tstSSM \ 71 72 tstVMMR0CallHost-1 \ 72 73 tstVMMR0CallHost-2 \ … … 251 252 # Saved state manager testcase. 252 253 # 253 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"254 tstSSMHardened_TEMPLATE = VBoxR3HardenedTstExe255 tstSSMHardened_NAME = tstSSM256 tstSSMHardened_DEFS = PROGRAM_NAME_STR=\"tstSSM\"257 tstSSMHardened_SOURCES = ../../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp258 tstSSM_TEMPLATE = VBoxR3HardenedTstDll259 else260 254 tstSSM_TEMPLATE = VBOXR3TSTEXE 261 endif262 255 tstSSM_INCS = $(VBOX_PATH_VMM_SRC)/include 263 256 tstSSM_SOURCES = tstSSM.cpp -
trunk/src/VBox/VMM/testcase/tstSSM.cpp
r80281 r80282 669 669 #ifdef VBOX_BUGREF_9217 670 670 PVMCPU pVCpu = (PVMCPU)(pVM + 1); 671 pVM->apCpusR3[0]= pVCpu; 671 #else 672 PVMCPU pVCpu = &pVM->aCpus[0]; 673 #endif 672 674 pVCpu->pVMR3 = pVM; 673 675 pVCpu->hNativeThread = RTThreadNativeSelf(); 674 #else 675 pVM->aCpus[0].pVMR3 = pVM; 676 pVM->aCpus[0].hNativeThread = RTThreadNativeSelf(); 677 #endif 676 pVM->apCpusR3[0] = pVCpu; 678 677 679 678 pUVM->pVM = pVM; … … 715 714 * Entry point. 716 715 */ 717 extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv, char **envp) 718 { 719 RT_NOREF1(envp); 720 716 int main(int argc, char **argv) 717 { 721 718 /* 722 719 * Init runtime and static data. 723 720 */ 724 #ifdef VBOX_BUGREF_9217725 721 int rc = RTR3InitExe(argc, &argv, 0); 726 722 AssertRCReturn(rc, RTEXITCODE_INIT); 727 #else728 RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);729 #endif730 723 RTPrintf("tstSSM: TESTING...\n"); 731 724 initBigMem(); … … 735 728 * Create an fake VM structure and init SSM. 736 729 */ 737 #ifndef VBOX_BUGREF_9217738 int rc = SUPR3Init(NULL);739 if (RT_FAILURE(rc))740 {741 RTPrintf("Fatal error: SUP Failure! rc=%Rrc\n", rc);742 return 1;743 }744 #endif745 730 PVM pVM; 746 731 if (createFakeVM(&pVM)) … … 959 944 } 960 945 961 962 #if !defined(VBOX_WITH_HARDENING) || !defined(RT_OS_WINDOWS)963 /**964 * Main entry point.965 */966 int main(int argc, char **argv, char **envp)967 {968 return TrustedMain(argc, argv, envp);969 }970 #endif971
Note:
See TracChangeset
for help on using the changeset viewer.