Exclude api test for getting gop info from RT only

Change-Id: Iea8c88da24d5ec1e9afdc2e27ac3ce526d92944a
diff --git a/test/encode_api_test.cc b/test/encode_api_test.cc
index 71bb049..0b28d2c 100644
--- a/test/encode_api_test.cc
+++ b/test/encode_api_test.cc
@@ -1734,6 +1734,7 @@
   ASSERT_EQ(aom_codec_destroy(&enc), AOM_CODEC_OK);
 }
 
+#if !CONFIG_REALTIME_ONLY
 class GetGopInfoTest : public ::libaom_test::EncoderTest,
                        public ::testing::Test {
  protected:
@@ -1778,5 +1779,6 @@
   video.set_limit(kFrameLimit);
   ASSERT_NO_FATAL_FAILURE(RunLoop(&video));
 }
+#endif  // !CONFIG_REALTIME_ONLY
 
 }  // namespace