vbox的更動 26338 路徑 trunk/src/VBox/VMM/testcase
- 時間撮記:
- 2010-2-9 上午12:54:20 (15 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器