mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 10:58:11 +08:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user