Changeset 63161 in vbox
- Timestamp:
- Aug 8, 2016 12:51:16 PM (8 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/GuestCtrlImplPrivate.h
r63154 r63161 823 823 #endif 824 824 825 uint32_t GetOffset() { return m_offBuffer; }825 size_t GetOffset() { return m_offBuffer; } 826 826 827 827 size_t GetSize() { return m_cbUsed; } -
trunk/src/VBox/Main/testcase/tstGuestCtrlParseBuffer.cpp
r62485 r63161 114 114 }; 115 115 116 int manualTest( )117 { 118 int rc ;116 int manualTest(void) 117 { 118 int rc = VINF_SUCCESS; 119 119 static struct 120 120 { … … 131 131 }; 132 132 133 unsigned iTest = 0; 134 for (iTest; iTest < RT_ELEMENTS(aTest); iTest++) 133 for (unsigned iTest = 0; iTest < RT_ELEMENTS(aTest); iTest++) 135 134 { 136 135 RTTestIPrintf(RTTESTLVL_DEBUG, "Manual test #%d\n", iTest); … … 189 188 RTAssertSetQuiet(true); 190 189 191 unsigned iTest = 0;192 for (iTest ; iTest < RT_ELEMENTS(aTestBlock); iTest++)190 unsigned iTest; 191 for (iTest = 0; iTest < RT_ELEMENTS(aTestBlock); iTest++) 193 192 { 194 193 RTTestIPrintf(RTTESTLVL_DEBUG, "=> Test #%u\n", iTest); … … 207 206 else if (stream.GetOffset() != aTestBlock[iTest].uOffsetAfter) 208 207 { 209 RTTestFailed(hTest, "\tOffset % u wrong, expected %u\n",208 RTTestFailed(hTest, "\tOffset %zu wrong, expected %u\n", 210 209 stream.GetOffset(), aTestBlock[iTest].uOffsetAfter); 211 210 } 212 211 else if (iResult == VERR_MORE_DATA) 213 212 { 214 RTTestIPrintf(RTTESTLVL_DEBUG, "\tMore data (Offset: % u)\n", stream.GetOffset());213 RTTestIPrintf(RTTESTLVL_DEBUG, "\tMore data (Offset: %zu)\n", stream.GetOffset()); 215 214 } 216 215 … … 227 226 /* There is remaining data left in the buffer (which needs to be merged 228 227 * with a following buffer) -- print it. */ 229 uint32_t uOffset = stream.GetOffset();228 size_t uOffset = stream.GetOffset(); 230 229 size_t uToWrite = aTestBlock[iTest].cbData - uOffset; 231 230 if (uToWrite) … … 244 243 RTTestIPrintf(RTTESTLVL_INFO, "Doing block tests ...\n"); 245 244 246 iTest = 0; 247 for (iTest; iTest < RT_ELEMENTS(aTestStream); iTest++) 245 for (iTest = 0; iTest < RT_ELEMENTS(aTestStream); iTest++) 248 246 { 249 247 RTTestIPrintf(RTTESTLVL_DEBUG, "=> Block test #%u\n", iTest);
Note:
See TracChangeset
for help on using the changeset viewer.