summaryrefslogtreecommitdiff
path: root/test/test_libvpx.cc
diff options
context:
space:
mode:
authorJohann <johannkoenig@google.com>2015-09-01 12:47:43 -0700
committerJohann <johannkoenig@google.com>2015-09-01 17:03:55 -0700
commit95633d0e80bdd4f3ebaa9568ef9cf5b72426d138 (patch)
treecacf365e374a44aa62684a49da22f49a1ed4b66c /test/test_libvpx.cc
parente5b76ba26e34515af7f9a15e06568440c8df39bc (diff)
downloadlibvpx-95633d0e80bdd4f3ebaa9568ef9cf5b72426d138.tar
libvpx-95633d0e80bdd4f3ebaa9568ef9cf5b72426d138.tar.gz
libvpx-95633d0e80bdd4f3ebaa9568ef9cf5b72426d138.tar.bz2
libvpx-95633d0e80bdd4f3ebaa9568ef9cf5b72426d138.zip
Only build append_negative_gtest_filter when it is used.
Change-Id: If6fec02fd8125b368ea83c99208575ac0d4a662b
Diffstat (limited to 'test/test_libvpx.cc')
-rw-r--r--test/test_libvpx.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_libvpx.cc b/test/test_libvpx.cc
index 264991740..005ea8d13 100644
--- a/test/test_libvpx.cc
+++ b/test/test_libvpx.cc
@@ -26,6 +26,7 @@ extern void vpx_dsp_rtcd();
extern void vpx_scale_rtcd();
}
+#if ARCH_X86 || ARCH_X86_64
static void append_negative_gtest_filter(const char *str) {
std::string filter = ::testing::FLAGS_gtest_filter;
// Negative patterns begin with one '-' followed by a ':' separated list.
@@ -33,6 +34,7 @@ static void append_negative_gtest_filter(const char *str) {
filter += str;
::testing::FLAGS_gtest_filter = filter;
}
+#endif // ARCH_X86 || ARCH_X86_64
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
@@ -55,7 +57,7 @@ int main(int argc, char **argv) {
append_negative_gtest_filter(":AVX.*:AVX/*");
if (!(simd_caps & HAS_AVX2))
append_negative_gtest_filter(":AVX2.*:AVX2/*");
-#endif
+#endif // ARCH_X86 || ARCH_X86_64
#if !CONFIG_SHARED
// Shared library builds don't support whitebox tests