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.

llvm-svn: 334659
This commit is contained in:
Dimitry Andric 2018-06-13 21:37:49 +00:00
parent 9b8b0794b8
commit a00c372cd3

View 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)