[Msan] Disable the fgetgrent_r unit test on FreeBSD

Differential Revision: http://reviews.llvm.org/D7343

llvm-svn: 229387
This commit is contained in:
Viktor Kutuzov 2015-02-16 13:24:21 +00:00
parent f886b38a0e
commit 1a55126699
1 changed files with 3 additions and 0 deletions

View File

@ -3371,6 +3371,8 @@ TEST(MemorySanitizer, getgrent_r) {
EXPECT_NOT_POISONED(grpres);
}
// There's no fgetgrent_r() on FreeBSD.
#if !defined(__FreeBSD__)
TEST(MemorySanitizer, fgetgrent_r) {
FILE *fp = fopen("/etc/group", "r");
struct group grp;
@ -3386,6 +3388,7 @@ TEST(MemorySanitizer, fgetgrent_r) {
EXPECT_NOT_POISONED(grpres);
fclose(fp);
}
#endif
TEST(MemorySanitizer, getgroups) {
int n = getgroups(0, 0);