[compiler-rt] r197390 - [msan] Relax gethostbyname_r test condition.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Mon Dec 16 07:01:31 PST 2013
Author: eugenis
Date: Mon Dec 16 09:01:31 2013
New Revision: 197390
URL: http://llvm.org/viewvc/llvm-project?rev=197390&view=rev
Log:
[msan] Relax gethostbyname_r test condition.
Apparently, its return value depends on the glibc version.
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=197390&r1=197389&r2=197390&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Mon Dec 16 09:01:31 2013
@@ -1067,7 +1067,6 @@ TEST(MemorySanitizer, gethostbyname_r_ba
struct hostent *result;
int err;
int res = gethostbyname_r("bad-host-name", &he, buf, sizeof(buf), &result, &err);
- ASSERT_EQ(0, res);
ASSERT_EQ((struct hostent *)0, result);
EXPECT_NOT_POISONED(err);
}
More information about the llvm-commits
mailing list