Disable MSan tests of prlimit on FreeBSD
authorDimitry Andric <dimitry@andric.com>
Wed, 13 Jun 2018 21:37:49 +0000 (21:37 +0000)
committerDimitry Andric <dimitry@andric.com>
Wed, 13 Jun 2018 21:37:49 +0000 (21:37 +0000)
Like NetBSD, FreeBSD does not have prlimit(2), so do not attempt to use
it during the MSan tests.

llvm-svn: 334659

compiler-rt/lib/msan/tests/msan_test.cc

index 40770f1..29260f1 100644 (file)
@@ -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)