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
pull/1115/head
Abseil Team 2 years ago committed by Copybara-Service
parent bbf2ed7890
commit 6b2d248d3e
  1. 5
      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());
}

Loading…
Cancel
Save