decode_test_driver: check HasFailure() in RunLoop

avoids unnecessary errors due to e.g., read (Next()) failures

Change-Id: I70b1d09766456f1c55367d98299b5abd7afff842
This commit is contained in:
James Zern 2014-06-21 19:04:12 -07:00
parent 9be46e4565
commit 8f5b81fa8d

View File

@ -31,7 +31,8 @@ void DecoderTest::RunLoop(CompressedVideoSource *video) {
ASSERT_TRUE(decoder != NULL);
// Decode frames.
for (video->Begin(); video->cxdata(); video->Next()) {
for (video->Begin(); !::testing::Test::HasFailure() && video->cxdata();
video->Next()) {
PreDecodeFrameHook(*video, decoder);
vpx_codec_err_t res_dec = decoder->DecodeFrame(video->cxdata(),
video->frame_size());