sad_test,ShortSrc: break on error
this avoids excessive output due to the loop used in the test
Change-Id: I725cec26e3abbf6537fcdabb8861474302b8a122
diff --git a/test/sad_test.cc b/test/sad_test.cc
index 055da2f..4c548d3 100644
--- a/test/sad_test.cc
+++ b/test/sad_test.cc
@@ -711,6 +711,7 @@
FillRandom(source_data_, source_stride_);
FillRandom(reference_data_, reference_stride_);
CheckSAD();
+ if (testing::Test::HasFatalFailure()) break;
test_count -= 1;
}
source_stride_ = tmp_stride;
@@ -765,6 +766,7 @@
FillRandom(source_data_, source_stride_);
FillRandom(reference_data_, reference_stride_);
CheckSAD();
+ if (testing::Test::HasFatalFailure()) break;
test_count -= 1;
}
source_stride_ = tmp_stride;
@@ -823,6 +825,7 @@
FillRandom(reference_data_, reference_stride_);
FillRandom(second_pred_, width_);
CheckSAD();
+ if (testing::Test::HasFatalFailure()) break;
test_count -= 1;
}
source_stride_ = tmp_stride;
@@ -900,6 +903,7 @@
FillRandom(source_data_, source_stride_);
FillRandom(reference_data_, reference_stride_);
CheckSAD();
+ if (testing::Test::HasFatalFailure()) break;
test_count -= 1;
}
source_stride_ = tmp_stride;
@@ -949,6 +953,7 @@
FillRandom(reference_data_, reference_stride_);
FillRandom(second_pred_, width_);
CheckSAD();
+ if (testing::Test::HasFatalFailure()) break;
test_count -= 1;
}
source_stride_ = tmp_stride;