[compiler-rt] r334659 - Disable MSan tests of prlimit on FreeBSD
Dimitry Andric via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 13 14:37:49 PDT 2018
Author: dim
Date: Wed Jun 13 14:37:49 2018
New Revision: 334659
URL: http://llvm.org/viewvc/llvm-project?rev=334659&view=rev
Log:
Disable MSan tests of prlimit on FreeBSD
Like NetBSD, FreeBSD does not have prlimit(2), so do not attempt to use
it during the MSan tests.
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=334659&r1=334658&r2=334659&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Wed Jun 13 14:37:49 2018
@@ -3024,7 +3024,7 @@ TEST(MemorySanitizer, LongStruct) {
EXPECT_POISONED(s2.a8);
}
-#if defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#define MSAN_TEST_PRLIMIT 0
#elif defined(__GLIBC__)
#define MSAN_TEST_PRLIMIT __GLIBC_PREREQ(2, 13)
More information about the llvm-commits
mailing list