[compiler-rt] r260946 - [Compiler-rt][MSan][MIPS] Resolve gethostbyname_r_erange for MIPS
Mohit K. Bhakkad via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 16 00:33:37 PST 2016
Author: mohit.bhakkad
Date: Tue Feb 16 02:33:37 2016
New Revision: 260946
URL: http://llvm.org/viewvc/llvm-project?rev=260946&view=rev
Log:
[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
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=260946&r1=260945&r2=260946&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Tue Feb 16 02:33:37 2016
@@ -1117,8 +1117,8 @@ TEST(MemorySanitizer, gethostbyname_r_er
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);
}
More information about the llvm-commits
mailing list