]> granicus.if.org Git - libvpx/commitdiff
encode_test_driver: test for failure prior to encode
authorJames Zern <jzern@google.com>
Thu, 27 Aug 2015 23:05:52 +0000 (16:05 -0700)
committerJames Zern <jzern@google.com>
Thu, 27 Aug 2015 23:05:52 +0000 (16:05 -0700)
limits the amount of failure messages should e.g., a test file fail to
be opened

Change-Id: I0b30da0faa78cada23a226b577b3a48c74a896cd

test/encode_test_driver.cc

index be4ef9af8bd7e1b43f070f5b1f5ed70681643348..128436ee91c2d3844e3d232fe4af22197f63ec48 100644 (file)
@@ -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.