diff options
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 |