]> granicus.if.org Git - libvpx/commitdiff
googletest: enable failure on uninstantiated tests
authorSarah Parker <sarahparker@google.com>
Fri, 11 Sep 2020 03:33:02 +0000 (20:33 -0700)
committerSarah Parker <sarahparker@google.com>
Fri, 11 Sep 2020 03:33:02 +0000 (20:33 -0700)
Similar to the change in
https://aomedia-review.googlesource.com/c/aom/+/115162.
This currently is a warning, but the tree should be clean now in the
default x86-64 configuration so we can use it to prevent regressions and
find any remaining issues in other configurations.

BUG=b/159031844

Change-Id: I097537ff018668492d37164fdba5edd241dc5dbe

third_party/googletest/README.libvpx
third_party/googletest/src/src/gtest.cc

index 0f6202cb7b8f4e1a3fd2faa3a6e7801b90cad470..ed55fb09f93b3ebfbda264e6c63a626a33a1209e 100644 (file)
@@ -19,3 +19,5 @@ Local Modifications:
    LICENSE
    README.md
    src
+- Enable kErrorOnUninstantiatedParameterizedTest and
+  kErrorOnUninstantiatedTypeParameterizedTest in gtest.cc
index 095778e6e93fcd0697594893e414bc2315c7c076..b8f6a5c31cc86a116b0b498347e8b94194cec266 100644 (file)
@@ -414,8 +414,8 @@ namespace {
 // inserted to report ether an error or a log message.
 //
 // This configuration bit will likely be removed at some point.
-constexpr bool kErrorOnUninstantiatedParameterizedTest = false;
-constexpr bool kErrorOnUninstantiatedTypeParameterizedTest = false;
+constexpr bool kErrorOnUninstantiatedParameterizedTest = true;
+constexpr bool kErrorOnUninstantiatedTypeParameterizedTest = true;
 
 // A test that fails at a given file/line location with a given message.
 class FailureTest : public Test {