Black list some valgrind tests (#4642)

Summary:
valgrind tests with 1 thread run too long. To make it shorter, black list some long tests. These are already blacklisted in parallel valgrind tests, but they are not in non-parallel mode
Pull Request resolved: https://github.com/facebook/rocksdb/pull/4642

Differential Revision: D12945237

Pulled By: siying

fbshipit-source-id: 04cf977d435996480fe87aa09f14b17975b74f7d
main
Siying Dong 6 years ago committed by Facebook Github Bot
parent 0a53577416
commit 566fc8b994
  1. 2
      db/db_bloom_filter_test.cc
  2. 2
      table/table_test.cc
  3. 4
      utilities/transactions/transaction_test.cc

@ -499,6 +499,7 @@ TEST_P(DBBloomFilterTestWithParam, BloomFilter) {
} while (ChangeCompactOptions()); } while (ChangeCompactOptions());
} }
#ifndef ROCKSDB_VALGRIND_RUN
INSTANTIATE_TEST_CASE_P( INSTANTIATE_TEST_CASE_P(
FormatDef, DBBloomFilterTestDefFormatVersion, FormatDef, DBBloomFilterTestDefFormatVersion,
::testing::Values(std::make_tuple(true, false, test::kDefaultFormatVersion), ::testing::Values(std::make_tuple(true, false, test::kDefaultFormatVersion),
@ -519,6 +520,7 @@ INSTANTIATE_TEST_CASE_P(
std::make_tuple(false, true, test::kLatestFormatVersion), std::make_tuple(false, true, test::kLatestFormatVersion),
std::make_tuple(false, false, std::make_tuple(false, false,
test::kLatestFormatVersion))); test::kLatestFormatVersion)));
#endif // ROCKSDB_VALGRIND_RUN
TEST_F(DBBloomFilterTest, BloomFilterRate) { TEST_F(DBBloomFilterTest, BloomFilterRate) {
while (ChangeFilterOptions()) { while (ChangeFilterOptions()) {

@ -2786,6 +2786,7 @@ TEST_F(GeneralTableTest, ApproximateOffsetOfCompressed) {
} }
} }
#ifndef ROCKSDB_VALGRIND_RUN
// RandomizedHarnessTest is very slow for certain combination of arguments // RandomizedHarnessTest is very slow for certain combination of arguments
// Split into 8 pieces to reduce the time individual tests take. // Split into 8 pieces to reduce the time individual tests take.
TEST_F(HarnessTest, Randomized1) { TEST_F(HarnessTest, Randomized1) {
@ -2869,6 +2870,7 @@ TEST_F(HarnessTest, RandomizedLongDB) {
ASSERT_GT(files, 0); ASSERT_GT(files, 0);
} }
#endif // ROCKSDB_LITE #endif // ROCKSDB_LITE
#endif // ROCKSDB_VALGRIND_RUN
class MemTableTest : public testing::Test {}; class MemTableTest : public testing::Test {};

@ -606,6 +606,7 @@ TEST_P(TransactionTest, DeadlockCycleShared) {
} }
} }
#ifndef ROCKSDB_VALGRIND_RUN
TEST_P(TransactionStressTest, DeadlockCycle) { TEST_P(TransactionStressTest, DeadlockCycle) {
WriteOptions write_options; WriteOptions write_options;
ReadOptions read_options; ReadOptions read_options;
@ -768,6 +769,7 @@ TEST_P(TransactionStressTest, DeadlockStress) {
t.join(); t.join();
} }
} }
#endif // ROCKSDB_VALGRIND_RUN
TEST_P(TransactionTest, CommitTimeBatchFailTest) { TEST_P(TransactionTest, CommitTimeBatchFailTest) {
WriteOptions write_options; WriteOptions write_options;
@ -1097,6 +1099,7 @@ TEST_P(TransactionTest, TwoPhaseEmptyWriteTest) {
} }
} }
#ifndef ROCKSDB_VALGRIND_RUN
TEST_P(TransactionStressTest, TwoPhaseExpirationTest) { TEST_P(TransactionStressTest, TwoPhaseExpirationTest) {
Status s; Status s;
@ -1334,6 +1337,7 @@ TEST_P(TransactionTest, PersistentTwoPhaseTransactionTest) {
// deleting transaction should unregister transaction // deleting transaction should unregister transaction
ASSERT_EQ(db->GetTransactionByName("xid"), nullptr); ASSERT_EQ(db->GetTransactionByName("xid"), nullptr);
} }
#endif // ROCKSDB_VALGRIND_RUN
// TODO this test needs to be updated with serial commits // TODO this test needs to be updated with serial commits
TEST_P(TransactionTest, DISABLED_TwoPhaseMultiThreadTest) { TEST_P(TransactionTest, DISABLED_TwoPhaseMultiThreadTest) {

Loading…
Cancel
Save