Skip ForcedFrameIsKeyCornerCases for bug 2915

Skip the ForcedKeyTestLarge.ForcedFrameIsKeyCornerCases test if it will
divide by zero.

Specifically, AV1/ForcedKeyTestLarge.ForcedFrameIsKeyCornerCases/n
for n = 42..47 will divide by zero. There are a total of 48 test param
combinations, so the ones we need to skip are the last six.

BUG=aomedia:2915

Change-Id: Ic704c5f97f54f733bd6e38198e957616294b3f32
diff --git a/test/kf_test.cc b/test/kf_test.cc
index 0b36881..80c2aec 100644
--- a/test/kf_test.cc
+++ b/test/kf_test.cc
@@ -230,6 +230,14 @@
 }
 
 TEST_P(ForcedKeyTestLarge, ForcedFrameIsKeyCornerCases) {
+  // TODO(aomedia:2915): Remove this if statement.
+  if (encoding_mode_ == ::libaom_test::kTwoPassGood && auto_alt_ref_ == 1 &&
+      fwd_kf_enabled_ == 1) {
+    std::cerr << "The test will divide by zero (crbug.com/aomedia/2915). Skip "
+                 "the test."
+              << std::endl;
+    return;
+  }
   const aom_rational timebase = { 1, 30 };
   const int kf_offsets[] = { -2, -1, 1, 2, 0 };
   cfg_.g_lag_in_frames = 35;