Changeset 41790 in vbox for trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp
- Timestamp:
- Jun 16, 2012 8:33:45 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Disassembler/testcase/tstDisasm-1.cpp
r41781 r41790 43 43 uint32_t const cErrBefore = RTTestIErrorCount(); 44 44 uint32_t cb = 1; 45 DIS CPUSTATE Cpu;45 DISSTATE Dis; 46 46 char szOutput[256] = {0}; 47 int rc = DISInstrToStr(&pabInstrs[off], enmDisCpuMode, & Cpu, &cb, szOutput, sizeof(szOutput));47 int rc = DISInstrToStr(&pabInstrs[off], enmDisCpuMode, &Dis, &cb, szOutput, sizeof(szOutput)); 48 48 49 49 RTTESTI_CHECK_RC(rc, VINF_SUCCESS); 50 RTTESTI_CHECK(cb == Cpu.cbInstr);50 RTTESTI_CHECK(cb == Dis.cbInstr); 51 51 RTTESTI_CHECK(cb > 0); 52 52 RTTESTI_CHECK(cb <= 16); … … 70 70 if (cErrBefore != RTTestIErrorCount()) 71 71 RTTestIFailureDetails("rc=%Rrc, off=%#x (%u) cbInstr=%u enmDisCpuMode=%d\n", 72 rc, off, Cpu.cbInstr, enmDisCpuMode);72 rc, off, Dis.cbInstr, enmDisCpuMode); 73 73 RTTestIPrintf(RTTESTLVL_ALWAYS, "%s\n", szOutput); 74 74 off += cb; … … 87 87 for (size_t off = 0; off < cbInstrs; cInstrs++) 88 88 { 89 uint32_t 90 DIS CPUSTATE Cpu;91 DISInstr(&pabInstrs[off], enmDisCpuMode, & Cpu, &cb);89 uint32_t cb = 1; 90 DISSTATE Dis; 91 DISInstr(&pabInstrs[off], enmDisCpuMode, &Dis, &cb); 92 92 off += cb; 93 93 }
Note:
See TracChangeset
for help on using the changeset viewer.