diff options
author | James Zern <jzern@google.com> | 2013-06-25 17:53:20 -0700 |
---|---|---|
committer | James Zern <jzern@google.com> | 2013-06-25 17:57:52 -0700 |
commit | 1c05e9de2ca852d9e929696f53ab18063f4ef9c0 (patch) | |
tree | f841bc827aa4ebd98109bf0001530ea09058f675 /test/encode_test_driver.h | |
parent | 3f184bce7bff9a3b5cee7045856fc2c42f1299d4 (diff) | |
download | libvpx-1c05e9de2ca852d9e929696f53ab18063f4ef9c0.tar libvpx-1c05e9de2ca852d9e929696f53ab18063f4ef9c0.tar.gz libvpx-1c05e9de2ca852d9e929696f53ab18063f4ef9c0.tar.bz2 libvpx-1c05e9de2ca852d9e929696f53ab18063f4ef9c0.zip |
encode_test_driver: check for fatal failures
Make the base test be:
!(fatal || abort_) removing some redundancy in the encode tests
Change-Id: I8ffaf33fcf9a3030b38ea3e8eb94704cdc2fc920
Diffstat (limited to 'test/encode_test_driver.h')
-rw-r--r-- | test/encode_test_driver.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/encode_test_driver.h b/test/encode_test_driver.h index 6aeb96b1f..dbdc33c8e 100644 --- a/test/encode_test_driver.h +++ b/test/encode_test_driver.h @@ -190,7 +190,9 @@ class EncoderTest { virtual void PSNRPktHook(const vpx_codec_cx_pkt_t *pkt) {} // Hook to determine whether the encode loop should continue. - virtual bool Continue() const { return !abort_; } + virtual bool Continue() const { + return !(::testing::Test::HasFatalFailure() || abort_); + } const CodecFactory *codec_; // Hook to determine whether to decode frame after encoding |