summaryrefslogtreecommitdiffstats
path: root/googletest/src/gtest.cc
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2022-03-22 16:07:20 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-03-22 16:07:51 (GMT)
commit5d6f38c1e2bc5e462e7bbb743903479ee2c54f7e (patch)
tree2ca95233b7f0848fc62ede9786b77daeccf19fa0 /googletest/src/gtest.cc
parent1754febbaa863ae95f34c4aff46162f11186a899 (diff)
downloadgoogletest-5d6f38c1e2bc5e462e7bbb743903479ee2c54f7e.zip
googletest-5d6f38c1e2bc5e462e7bbb743903479ee2c54f7e.tar.gz
googletest-5d6f38c1e2bc5e462e7bbb743903479ee2c54f7e.tar.bz2
Only print disabled test banner if the test matches gtest_filter
Currently, the "[ DISABLED ]" banner is printed for every test in a suite. When iterating on a single test gtest_filter this is very noisy. PiperOrigin-RevId: 436489088 Change-Id: If337087a7a0986b073fabf2b0a55d26485eb5c37
Diffstat (limited to 'googletest/src/gtest.cc')
-rw-r--r--googletest/src/gtest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index e422e92..10cff8e 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -2821,7 +2821,7 @@ void UnitTestImpl::RegisterParameterizedTests() {
void TestInfo::Run() {
TestEventListener* repeater = UnitTest::GetInstance()->listeners().repeater();
if (!should_run_) {
- if (is_disabled_) repeater->OnTestDisabled(*this);
+ if (is_disabled_ && matches_filter_) repeater->OnTestDisabled(*this);
return;
}