Merge pull request #1533 from mstorsjo/speedup-tests

Speed up some slow tests in the unit test suite
This commit is contained in:
dongzha 2014-11-14 17:16:06 +08:00
commit cbb6e993cf
2 changed files with 2 additions and 3 deletions

View File

@ -2233,8 +2233,7 @@ TEST_F (DecodeCrashTestAPI, DecoderCrashTest) {
} while (1); //while (iLoopRound<100);
fclose (f);
#else
}
while (uiLoopRound < 100);
} while (uiLoopRound < 10);
#endif
}

View File

@ -90,7 +90,7 @@ void EncoderInterfaceTest::PrepareOneSrcFrame() {
if ((i % 256) == 0)
pYUV[i] = rand() % 256;
else
pYUV[i] = WELS_CLIP3 (pYUV[i - 1] + (rand() % 3) - 1, 0, 255);
pYUV[i] = (pYUV[i - 1] + (rand() % 3) - 1) & 0xff;
}
pSrcPic->iStride[0] = m_iWidth;
pSrcPic->iStride[1] = pSrcPic->iStride[2] = pSrcPic->iStride[0] >> 1;