Skip to content

Commit

Permalink
fix: disable sanitizers false positive (#3522)
Browse files Browse the repository at this point in the history
* disable false positive test cases

---------

Signed-off-by: kostas <[email protected]>
  • Loading branch information
kostasrim authored Aug 19, 2024
1 parent d13cd53 commit 86e79e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/server/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ if (WITH_ASAN OR WITH_USAN)
target_compile_definitions(multi_test PRIVATE SANITIZERS)
target_compile_definitions(search_family_test PRIVATE SANITIZERS)
target_compile_definitions(json_family_test PRIVATE SANITIZERS)
target_compile_definitions(dragonfly_test PRIVATE SANITIZERS)
endif()
cxx_test(search/aggregator_test dfly_test_lib LABELS DFLY)

Expand Down
3 changes: 3 additions & 0 deletions src/server/dragonfly_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ TEST_F(DflyEngineTest, OOM) {
}
}

#ifndef SANITIZERS
/// Reproduces the case where items with expiry data were evicted,
/// and then written with the same key.
TEST_F(DflyEngineTest, Bug207) {
Expand Down Expand Up @@ -523,6 +524,8 @@ TEST_F(DflyEngineTest, StickyEviction) {
}
}

#endif

TEST_F(DflyEngineTest, PSubscribe) {
single_response_ = false;
auto resp = pp_->at(1)->Await([&] { return Run({"psubscribe", "a*", "b*"}); });
Expand Down

0 comments on commit 86e79e1

Please sign in to comment.