[Compiler-rt][MSan][MIPS] Resolve gethostbyname_r_erange for MIPS

Reviewers: eugenis, kcc, samsonov

Subscribers: jaydeep, sagar, llvm-commits

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

llvm-svn: 260946
This commit is contained in:
Mohit K. Bhakkad 2016-02-16 08:33:37 +00:00
parent 2c2c461e2a
commit 6987e59cd1
1 changed files with 2 additions and 2 deletions

View File

@ -1117,8 +1117,8 @@ TEST(MemorySanitizer, gethostbyname_r_erange) {
struct hostent he;
struct hostent *result;
int err;
int res = gethostbyname_r("localhost", &he, buf, sizeof(buf), &result, &err);
ASSERT_EQ(ERANGE, res);
gethostbyname_r("localhost", &he, buf, sizeof(buf), &result, &err);
ASSERT_EQ(ERANGE, errno);
EXPECT_NOT_POISONED(err);
}