Changeset 13567 in vbox
- Timestamp:
- Oct 24, 2008 11:11:05 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM/testcase
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/Makefile.kmk
r13561 r13567 334 334 # Run rule for tstInstrEmul. 335 335 # 336 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstInstrEmul.run: $$(INSTARGET_tstInstrEmul) 336 $(VBOX_VMM_TESTCASE_OUT_DIR)/tstInstrEmul.run: $$(INSTARGET_tstInstrEmul) | $$(dir $$@) 337 337 $(QUIET)$(RM) -f $@ 338 $(INSTARGET_tstInstrEmul) 338 $(QUIET)$(REDIRECT) -E 'VBOX_LOG_FLAGS=disabled' -E 'VBOX_LOG_DEST=nofile' \ 339 $(if $(eq $(KBUILD_TARGET),darwin), -E 'DYLD_FALLBACK_LIBRARY_PATH=$(dir $(LIB_RUNTIME))') \ 340 -- \ 341 $(INSTARGET_tstInstrEmul) 339 342 $(QUIET)$(APPEND) "$@" "done" -
trunk/src/VBox/VMM/testcase/tstInstrEmul.cpp
r13562 r13567 40 40 int rcRet = 0; /* error count. */ 41 41 42 RTR3Init(); 43 RTPrintf("tstInstrEmul: TESTING...\n"); 44 42 45 uint32_t eax, edx, ebx, ecx, eflags; 43 46 uint64_t val; … … 52 55 || val != UINT64_C(0x200000001)) 53 56 { 54 printf("Lock cmpxchg8b failed the equal case! (val=%x%x)\n", val);55 return -1;57 RTPrintf("tstInstrEmul: FAILURE - Lock cmpxchg8b failed the equal case! (val=%x%x)\n", val); 58 return 1; 56 59 } 57 60 val = UINT64_C(0x123456789); … … 61 64 || edx != 0x1) 62 65 { 63 printf("Lock cmpxchg8b failed the non-equal case! (val=%x%x)\n", val);64 return -1;66 RTPrintf("tstInstrEmul: FAILURE - Lock cmpxchg8b failed the non-equal case! (val=%x%x)\n", val); 67 return 1; 65 68 } 66 printf("Testing lock cmpxchg instruction emulation - SUCCESS\n");69 RTPrintf("tstInstrEmul: Testing lock cmpxchg instruction emulation - SUCCESS\n"); 67 70 68 71 val = UINT64_C(0xffffffffffff); … … 75 78 || val != UINT64_C(0x200000001)) 76 79 { 77 printf("Cmpxchg8b failed the equal case! (val=%x%x)\n", val);78 return -1;80 RTPrintf("tstInstrEmul: FAILURE - Cmpxchg8b failed the equal case! (val=%x%x)\n", val); 81 return 1; 79 82 } 80 83 val = UINT64_C(0x123456789); … … 84 87 || edx != 0x1) 85 88 { 86 printf("Cmpxchg8b failed the non-equal case! (val=%x%x)\n", val);87 return -1;89 RTPrintf("tstInstrEmul: FAILURE - Cmpxchg8b failed the non-equal case! (val=%x%x)\n", val); 90 return 1; 88 91 } 89 printf("Testing cmpxchg instruction emulation - SUCCESS\n");92 RTPrintf("tstInstrEmul: Testing cmpxchg instruction emulation - SUCCESS\n"); 90 93 91 return rcRet; 94 95 /* 96 * Summary. 97 */ 98 if (!rcRet) 99 RTPrintf("tstInstrEmul: SUCCESS\n"); 100 else 101 RTPrintf("tstInstrEmul: FAILURE - %d errors\n", rcRet); 102 return rcRet ? 1 : 0; 92 103 }
Note:
See TracChangeset
for help on using the changeset viewer.