Skip to content

Commit 6c6ccc7

Browse files
committed
[NFC] Don't set rlimit in test with MSAN
1 parent 89a7e42 commit 6c6ccc7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang-tools-extra/clangd/unittests/SerializationTests.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,9 @@ TEST(SerializationTest, CmdlTest) {
306306
}
307307

308308
// rlimit is part of POSIX.
309-
// ASan uses a lot of address space, so we can't apply strict limits.
310-
#if LLVM_ON_UNIX && !LLVM_ADDRESS_SANITIZER_BUILD
309+
// Sanitizers use a lot of address space, so we can't apply strict limits.
310+
#if LLVM_ON_UNIX && !LLVM_ADDRESS_SANITIZER_BUILD && \
311+
!LLVM_MEMORY_SANITIZER_BUILD
311312
class ScopedMemoryLimit {
312313
struct rlimit OriginalLimit;
313314
bool Succeeded = false;

0 commit comments

Comments
 (0)