From dd6e5c7c635e741e946b27ec49296ab2e5b0fe98 Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Thu, 8 Jun 2017 12:30:28 -0700 Subject: [PATCH] Disable DBRangeDelTest::TailingIteratorRangeTombstoneUnsupported for ubsan Summary: UBSAN crashes when it run the test. Disabling it for UBSAN. Closes https://github.com/facebook/rocksdb/pull/2427 Differential Revision: D5210897 Pulled By: yiwu-arbug fbshipit-source-id: 2f5a876807c98d8db79ab9581965f7e6b29d4163 --- db/db_range_del_test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/db_range_del_test.cc b/db/db_range_del_test.cc index 6723e1398..fcc43d3f7 100644 --- a/db/db_range_del_test.cc +++ b/db/db_range_del_test.cc @@ -791,6 +791,7 @@ TEST_F(DBRangeDelTest, IteratorIgnoresRangeDeletions) { db_->ReleaseSnapshot(snapshot); } +#ifndef ROCKSDB_UBSAN_RUN TEST_F(DBRangeDelTest, TailingIteratorRangeTombstoneUnsupported) { db_->Put(WriteOptions(), "key", "val"); // snapshot prevents key from being deleted during flush @@ -817,6 +818,8 @@ TEST_F(DBRangeDelTest, TailingIteratorRangeTombstoneUnsupported) { } db_->ReleaseSnapshot(snapshot); } +#endif // !ROCKSDB_UBSAN_RUN + #endif // ROCKSDB_LITE } // namespace rocksdb