Changeset 26338 in vbox for trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp
- Timestamp:
- Feb 9, 2010 12:54:20 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57426
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/testcase/tstPDMAsyncCompletionStress.cpp
r26240 r26338 49 49 #include <iprt/thread.h> 50 50 #include <iprt/param.h> 51 #include <iprt/message.h> 51 52 52 53 #define TESTCASE "tstPDMAsyncCompletionStress" … … 179 180 180 181 if (memcmp(pbBuf, pbTestPattern, cbCompare)) 181 AssertMsgFailed(("Unexpected data for off=%RTfoff size=%u\n", pTestTask->off, pTestTask->DataSeg.cbSeg)); 182 { 183 unsigned idx = 0; 184 185 while ( (pbBuf[idx] == pbTestPattern[idx]) 186 && (idx < cbCompare)) 187 idx++; 188 189 RTMsgError("Unexpected data for off=%RTfoff size=%u\n" 190 "Expected %c got %c\n", 191 pTestTask->off + idx, pTestTask->DataSeg.cbSeg, 192 pbTestPattern[idx], pbBuf[idx]); 193 RTAssertDebugBreak(); 194 } 182 195 183 196 pbBuf += cbCompare; … … 315 328 int uRnd = RTRandU32Ex(0, 100); 316 329 317 return (uRnd < iPercentage); /* This should be enough for our purpose */330 return (uRnd <= iPercentage); /* This should be enough for our purpose */ 318 331 } 319 332
Note:
See TracChangeset
for help on using the changeset viewer.