From d1ff1e9ffbfa36a8e018181ed4b252425c25f521 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 27 Aug 2015 16:05:52 -0700 Subject: [PATCH] encode_test_driver: test for failure prior to encode limits the amount of failure messages should e.g., a test file fail to be opened Change-Id: I0b30da0faa78cada23a226b577b3a48c74a896cd --- test/encode_test_driver.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/test/encode_test_driver.cc b/test/encode_test_driver.cc index be4ef9af8..128436ee9 100644 --- a/test/encode_test_driver.cc +++ b/test/encode_test_driver.cc @@ -195,6 +195,7 @@ void EncoderTest::RunLoop(VideoSource *video) { video->Begin(); encoder->InitEncoder(video); + ASSERT_FALSE(::testing::Test::HasFatalFailure()); unsigned long dec_init_flags = 0; // NOLINT // Use fragment decoder if encoder outputs partitions.