History log of /bionic/tests/netdb_test.cpp
Revision Date Author Comments
a35cd8cdc2d43c8352011c5177af09adc2225c4e 13-Jan-2015 Yabin Cui <yabinc@google.com> Test that ip6-localhost exists in etc/hosts.

Addition change: make netdb_test pass on host.

Bug: 18791191
Change-Id: I7a9e29aa559ff6557288b47323d8a436379201a2
c62a4b5a7aede760b06298f4b641b5a9768f5744 09-Jan-2015 Elliott Hughes <enh@google.com> Fix freeaddrinfo(NULL).

Bug: https://code.google.com/p/android/issues/detail?id=13228
Change-Id: I5e3b126d90d750a93ac0b8872198e50ba047e603
58d33a51f336d6823ef1ec915949a5884699ff5f 17-Dec-2014 Yabin Cui <yabinc@google.com> Sync with upstream for gethnamaddr.c.

Bug: 18566967
Change-Id: I37e7410226b49eec67614e20b2c1d5e3e47817a5
32fea147eaac4b811440a29d362fdad7e2c5a4ec 16-Nov-2014 Elliott Hughes <enh@google.com> Add getaddrinfo(3) tests for NULL arguments.

According to https://github.com/ukanth/afwall/pull/213 some OEMs have
shipped a getaddrinfo(3) that crashes given NULL hostnames.

Change-Id: I9cea5fdd68546b7c64cf47e10e2b2b4d672b69d0
ba811120ae10ddca1ffc8855bf1d83e99b08bcd9 13-Aug-2014 Derek Xue <derek.xue@linaro.org> Migrate system/extra getaddrinfo test, and fix a bug in getservbyname(3).

This change is to migrate the getaddrinfo tests defined in the old file
system/extras/tests/bionic/libc/common/test_getaddrinfo.c
to the new place bionic/tests/netdb_test.cpp.

The test here is more thorough, and catches a bug in getservbyname(3)
that was breaking getaddrinfo(3)'s ability to look up services by name
without a hint that would cause it to ask for a specific protocol.

Change-Id: Ief5ebd0869496d1bc6a97861dfefa04bdf24bab1
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
4912fc7d152236cb496aec01eb5800cfd1b757c7 13-Aug-2014 Derek Xue <derek.xue@linaro.org> bionic/tests: migrate gethostbyname bionic test from system/extra to bionic/tests

this change migrate the gethostbyname test defined in the old file
system/extras/tests/bionic/libc/common/test_gethostbyname.c
to the new place bionic/tests/netdb_test.cpp

Change-Id: I342171090f681581fb54d68ea4a09adf61f52081
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
d8213bb5738ac778fcb5d696d1294b0f8ddae7f3 13-Feb-2013 Elliott Hughes <enh@google.com> Update getnameinfo.c, remove dead code, and fix error reporting.

Also add a unit test for the salen size checking.

Bug: 1889275
Change-Id: I8ec4107df9e2e9a8571e8915525249c6e44b98ad
d3b9d11369ee15dc0ce512014284c3c5432f2813 13-Feb-2013 Elliott Hughes <enh@google.com> Add a test that getaddrinfo works when hints are NULL.

Bug: 1827911
Change-Id: I9e1b774c44c10a8c5391bcf3baf1607f50eaf214