shithub: libvpx

Download patch

ref: d1ff1e9ffbfa36a8e018181ed4b252425c25f521
parent: 5c245a46d83d54f129f42db1a3bf7b2a2832252b
author: James Zern <jzern@google.com>
date: Thu Aug 27 12:05:52 EDT 2015

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

--- a/test/encode_test_driver.cc
+++ b/test/encode_test_driver.cc
@@ -195,6 +195,7 @@
 
     video->Begin();
     encoder->InitEncoder(video);
+    ASSERT_FALSE(::testing::Test::HasFatalFailure());
 
     unsigned long dec_init_flags = 0;  // NOLINT
     // Use fragment decoder if encoder outputs partitions.