[Compiler-rt][MSan][MIPS] Resolve gethostbyname_r_erange for MIPS
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>
Tue, 16 Feb 2016 08:33:37 +0000 (08:33 +0000)
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>
Tue, 16 Feb 2016 08:33:37 +0000 (08:33 +0000)
Reviewers: eugenis, kcc, samsonov

Subscribers: jaydeep, sagar, llvm-commits

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

llvm-svn: 260946

compiler-rt/lib/msan/tests/msan_test.cc

index f3d464e..348aa32 100644 (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);
 }