forked from OSchip/llvm-project
[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:
parent
2c2c461e2a
commit
6987e59cd1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue