summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-05-19 10:17:04 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2016-05-19 10:17:04 +0000
commit2cd118646bc80e6ab43e0ac57de7509e2f82e740 (patch)
tree38cacb2f73ee33723828779262f06eb3bbc6f897
parent31769223eb782e7b03655810d00dfdec66467d51 (diff)
downloadcompiler-rt-2cd118646bc80e6ab43e0ac57de7509e2f82e740.tar.gz
Merging rL260946:
----------------------------------------------------------------- [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 ----------------------------------------------------------------- git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_38@270035 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/msan/tests/msan_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msan/tests/msan_test.cc b/lib/msan/tests/msan_test.cc
index b7162b3c0..23d691c32 100644
--- a/lib/msan/tests/msan_test.cc
+++ b/lib/msan/tests/msan_test.cc
@@ -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);
}