summaryrefslogtreecommitdiff
path: root/absl/log
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-10-17 13:53:40 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-10-17 13:54:25 -0700
commit6b2d248d3e9fb5f07ea4a65a6d0923726854d446 (patch)
tree77e3fc7b3144a9196f1650d01eee28be85b742ed /absl/log
parentbbf2ed7890615a587f0209c6d7e9b2c08781ee09 (diff)
Disables StderrKnobsDefault due to order dependency
The SetLogtostderr and SetAlsologtostderr tests are setting flags that cause the stderrthreshold global value to be out of sync with the stderrthreshold flag. As a result, it is not currently possible to remove order dependency with these existing tests. PiperOrigin-RevId: 481731395 Change-Id: Ie992520982f2e69821d1d1b660e3326bf745ef0d
Diffstat (limited to 'absl/log')
-rw-r--r--absl/log/flags_test.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/absl/log/flags_test.cc b/absl/log/flags_test.cc
index 7a803152..a0f6d763 100644
--- a/absl/log/flags_test.cc
+++ b/absl/log/flags_test.cc
@@ -48,7 +48,10 @@ class LogFlagsTest : public ::testing::Test {
absl::FlagSaver flag_saver_;
};
-TEST_F(LogFlagsTest, StderrKnobsDefault) {
+// This test is disabled because it adds order dependency to the test suite.
+// This order dependency is currently not fixable due to the way the
+// stderrthreshold global value is out of sync with the stderrthreshold flag.
+TEST_F(LogFlagsTest, DISABLED_StderrKnobsDefault) {
EXPECT_EQ(absl::StderrThreshold(), DefaultStderrThreshold());
}