Skip to content

Commit

Permalink
[NFC] Don't set rlimit in test with MSAN
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka committed Nov 5, 2021
1 parent 89a7e42 commit 6c6ccc7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clang-tools-extra/clangd/unittests/SerializationTests.cpp
Expand Up @@ -306,8 +306,9 @@ TEST(SerializationTest, CmdlTest) {
}

// rlimit is part of POSIX.
// ASan uses a lot of address space, so we can't apply strict limits.
#if LLVM_ON_UNIX && !LLVM_ADDRESS_SANITIZER_BUILD
// Sanitizers use a lot of address space, so we can't apply strict limits.
#if LLVM_ON_UNIX && !LLVM_ADDRESS_SANITIZER_BUILD && \
!LLVM_MEMORY_SANITIZER_BUILD
class ScopedMemoryLimit {
struct rlimit OriginalLimit;
bool Succeeded = false;
Expand Down

0 comments on commit 6c6ccc7

Please sign in to comment.