Skip to content

Commit

Permalink
Tests: intset: revert attempt at no-asan
Browse files Browse the repository at this point in the history
We solve this with env vars in ctest now, and this fails for msvc.
  • Loading branch information
black-sliver committed Feb 27, 2024
1 parent f5fc46a commit 0aaa4b5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions test/cpp/intset/test_intset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,12 @@ TEST(IntsetTest, Duplicate)
uint32Set_free(set);
}

__attribute__((no_sanitize("address")))
static int64Set* int64Set_new_unchecked(size_t buckets)
{
return int64Set_new(buckets);
}

TEST(IntsetTest, SetAllocFailure)
{
// try to allocate 100TB of RAM, should fail and return NULL
if (sizeof(size_t) < 8)
GTEST_SKIP() << "Alloc error not testable on 32bit";
int64Set *set = int64Set_new_unchecked(6250000000000ULL);
int64Set *set = int64Set_new(6250000000000ULL);
EXPECT_FALSE(set);
int64Set_free(set);
}
Expand Down

0 comments on commit 0aaa4b5

Please sign in to comment.